Skip to content

Commit

Permalink
Merge pull request #344 from Opti-domains/delegatable-resolver-wo-fac…
Browse files Browse the repository at this point in the history
…tory

Use addressOfClone2 instead of predictAddress
  • Loading branch information
Arachnid committed Apr 4, 2024
2 parents 9ae2281 + e97d21f commit 52ef40c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/resolvers/DelegatableResolverFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ contract DelegatableResolverFactory {
*/
function predictAddress(address owner) external returns (address clone) {
bytes memory data = abi.encodePacked(owner);
clone = address(implementation).predictAddress(data);
clone = address(implementation).addressOfClone2(data);
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@ensdomains/buffer": "^0.1.1",
"@ensdomains/solsha1": "0.0.3",
"@openzeppelin/contracts": "^4.1.0",
"clones-with-immutable-args": "Arachnid/clones-with-immutable-args#feature/create2",
"clones-with-immutable-args": "wighawag/clones-with-immutable-args",
"dns-packet": "^5.3.0"
},
"directories": {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3050,9 +3050,9 @@ clone@2.1.2, clone@^2.0.0:
resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f"
integrity sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==

clones-with-immutable-args@Arachnid/clones-with-immutable-args#feature/create2:
version "1.0.0"
resolved "https://codeload.github.com/Arachnid/clones-with-immutable-args/tar.gz/802248d00be50ae2c8a860266aeca9b13fe317c8"
clones-with-immutable-args@wighawag/clones-with-immutable-args:
version "1.1.2"
resolved "https://codeload.github.com/wighawag/clones-with-immutable-args/tar.gz/2df4bff4eef8c061b9a92a7edbbfe12dbf6bcdb0"

code-point-at@^1.0.0:
version "1.1.0"
Expand Down

0 comments on commit 52ef40c

Please sign in to comment.