Skip to content

Commit

Permalink
remove unused func
Browse files Browse the repository at this point in the history
  • Loading branch information
TateB committed Aug 7, 2024
1 parent 3361a04 commit 61fb5a2
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions contracts/reverseRegistrar/SignatureReverseResolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,6 @@ contract SignatureReverseResolver is ISignatureReverseResolver {

function isAuthorised(address addr) internal view virtual {}

function getSignedMessageHash(
bytes4 selector,
string calldata name,
address addr,
uint256 inceptionDate
) public view returns (bytes32) {
// Follow ERC191 version 0 https://eips.ethereum.org/EIPS/eip-191
return
keccak256(
abi.encodePacked(
address(this),
selector,
name,
addr,
inceptionDate,
coinType
)
).toEthSignedMessageHash();
}

/**
* @dev Sets the name for an addr using a signature that can be verified with ERC1271.
* @param addr The reverse record to set
Expand All @@ -77,6 +57,8 @@ contract SignatureReverseResolver is ISignatureReverseResolver {
bytes memory signature
) public returns (bytes32) {
bytes32 node = _getNamehash(addr);

// Follow ERC191 version 0 https://eips.ethereum.org/EIPS/eip-191
bytes32 message = keccak256(
abi.encodePacked(
address(this),
Expand Down

0 comments on commit 61fb5a2

Please sign in to comment.