Skip to content

Commit

Permalink
Move supportsInterface below
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflau committed Dec 6, 2023
1 parent 4136a75 commit 26fc75a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions contracts/reverseRegistrar/L2ReverseRegistrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -445,16 +445,6 @@ contract L2ReverseRegistrar is
lastUpdated[node] = inceptionDate;
}

function supportsInterface(
bytes4 interfaceID
) public view override(Multicallable) returns (bool) {
return
interfaceID == type(IL2ReverseRegistrar).interfaceId ||
interfaceID == type(ITextResolver).interfaceId ||
interfaceID == type(INameResolver).interfaceId ||
super.supportsInterface(interfaceID);
}

/**
* @dev An optimised function to compute the sha3 of the lower-case
* hexadecimal representation of an Ethereum address.
Expand All @@ -480,4 +470,14 @@ contract L2ReverseRegistrar is
ret := keccak256(0, 40)
}
}

function supportsInterface(
bytes4 interfaceID
) public view override(Multicallable) returns (bool) {
return
interfaceID == type(IL2ReverseRegistrar).interfaceId ||
interfaceID == type(ITextResolver).interfaceId ||
interfaceID == type(INameResolver).interfaceId ||
super.supportsInterface(interfaceID);
}
}

0 comments on commit 26fc75a

Please sign in to comment.