Skip to content

Commit

Permalink
test: setAddr reverts if invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulla-cb committed Nov 27, 2024
1 parent d2c06eb commit ff94866
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/UpgradeableL2Resolver/SetAddr.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ contract SetAddr is UpgradeableL2ResolverBase {
resolver.setAddr(node, notUser);
}

function test_reverts_for_invalidAddress() public {
vm.prank(user);
vm.expectRevert();
resolver.setAddr(node, 60, "");
}

function test_setsAnETHAddress_byDefault(address a) public {
vm.prank(user);
resolver.setAddr(node, a);
Expand Down

0 comments on commit ff94866

Please sign in to comment.