Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieraykatz committed Jul 8, 2024
1 parent 25e765a commit 0bd62d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/L2/ReverseRegistrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ contract ReverseRegistrar is Ownable {
/// @notice Transfers ownership of the reverse ENS records for `msg.sender` to the provided `owner`.
///
/// @dev First claims the base-specific ENSIP-19 compliant reverse node, then claims and returns the
/// `addr.reverse` node.
/// `addr.reverse` node.
///
/// @param owner The address to set as the owner of the reverse record in ENS.
///
Expand Down Expand Up @@ -146,7 +146,11 @@ contract ReverseRegistrar is Ownable {
/// @param resolver The address of the resolver to set.
///
/// @return The ENS node hash of the base-specific reverse record.
function claimForBaseAddr(address addr, address owner, address resolver) public authorized(addr) returns (bytes32) {
function claimForBaseAddr(address addr, address owner, address resolver)
public
authorized(addr)
returns (bytes32)
{
bytes32 labelHash = Sha3.hexAddress(addr);
bytes32 baseReverseNode = keccak256(abi.encodePacked(BASE_REVERSE_NODE, labelHash));
emit BaseReverseClaimed(addr, baseReverseNode);
Expand Down
2 changes: 1 addition & 1 deletion test/ReverseRegistrar/Claim.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ contract Claim is ReverseRegistrarBase {

vm.prank(owner);
reverse.setDefaultResolver(resolver);

vm.expectEmit(address(reverse));
emit ReverseRegistrar.BaseReverseClaimed(user, baseReverseNode);
vm.expectEmit(address(reverse));
Expand Down
2 changes: 1 addition & 1 deletion test/ReverseRegistrar/SetNameForAddr.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ contract SetNameForAddr is ReverseRegistrarBase {
emit ReverseRegistrar.BaseReverseClaimed(address(ownedContract), baseReverseNode);
vm.prank(user);
bytes32 returnedReverseNode = reverse.setNameForAddr(address(ownedContract), user, address(resolver), name);

assertTrue(reverseNode == returnedReverseNode);
address retOwner = registry.owner(reverseNode);
assertTrue(retOwner == user);
Expand Down

0 comments on commit 0bd62d7

Please sign in to comment.