Skip to content

Commit

Permalink
Testnet Wrapper set
Browse files Browse the repository at this point in the history
  • Loading branch information
sshmatrix committed Aug 15, 2023
1 parent f3a968b commit a45b145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/CCIP2ETH.sol
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ contract CCIP2ETH is iCCIP2ETH {
*/
function getRecordhash(bytes32 _node) external view returns (bytes memory _recordhash) {
_recordhash = recordhash[_node];
// Check if first 12 bytes are bytes12(0)
bool _isQueryOwnerhash = _node & bytes32(uint256(0xFFFFFFFFFFFFFFFFFFFFFFFF) >> 96) == bytes32(0);
if (_recordhash.length == 0 && !_isQueryOwnerhash) {
if (_recordhash.length == 0) {
address _owner = ENS.owner(_node);
if (isWrapper[_owner]) {
_owner = iToken(_owner).ownerOf(uint256(_node));
Expand Down
4 changes: 2 additions & 2 deletions test/CCIP2ETH.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface xENS is iENS {

/**
* @author freetib.eth, sshmatrix.eth
* @title CCIP2.eth Resolver tester
* @title CCIP2.eth Resolver tester
* Note Tests unwrapped/legacy domains
*/
contract CCIP2ETHTestLegacy is Test {
Expand Down Expand Up @@ -496,7 +496,7 @@ contract CCIP2ETHTestLegacy is Test {

/**
* @author freetib.eth, sshmatrix.eth
* @title CCIP2.eth Resolver tester
* @title CCIP2.eth Resolver tester
* Note Tests wrapped domains
*/
contract CCIP2ETHTestWrapped is Test {
Expand Down

0 comments on commit a45b145

Please sign in to comment.