Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto committed Dec 7, 2023
1 parent bba81e3 commit 574498a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions contracts/resolvers/DelegatableResolverRegistrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ contract DelegatableResolverRegistrar is IDelegatableResolverRegistrar, ERC165 {
*/

function register(bytes memory name, address operator) external {
bytes32 node = bytes32(0);
bool authorized = false;
(node, authorized) = resolver.getAuthorisedNode(name, 0, operator);
resolver.approve(name, operator, true);
(bytes32 node, bool authorized) = resolver.getAuthorisedNode(
name,
0,
operator
);
if (authorized == false) {
resolver.approve(name, operator, true);
}
}

function supportsInterface(
Expand Down

0 comments on commit 574498a

Please sign in to comment.