Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish ENSIP-19 integration #95

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/L2/ReverseRegistrarShim.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

import {IReverseRegistrar} from "./interface/IReverseRegistrar.sol";
import {IL2ReverseResolver} from "./interface/IL2ReverseResolver.sol";

contract ReverseRegistrarShim {
address public immutable reverseRegistrar;
address public immutable reverseResolver;
address public immutable l2Resolver;

constructor(address reverseRegistrar_, address reverseResolver_, address l2Resolver_) {

Check notice

Code scanning / Slither

Missing zero address validation Low

Check notice

Code scanning / Slither

Missing zero address validation Low

Check notice

Code scanning / Slither

Missing zero address validation Low

reverseRegistrar = reverseRegistrar_;
reverseResolver = reverseResolver_;
l2Resolver = l2Resolver_;
}

function setNameForAddrWithSignature(
address addr,
string calldata name,
uint256 signatureExpiry,
bytes memory signature
) external returns (bytes32) {
IReverseRegistrar(reverseRegistrar).setNameForAddr(addr, msg.sender, l2Resolver, name);
return IL2ReverseResolver(reverseResolver).setNameForAddrWithSignature(addr, name, signatureExpiry, signature);
}
}

Check warning

Code scanning / Slither

Missing inheritance Warning

Loading