diff --git a/test/ScrollBadgeResolver.t.sol b/test/ScrollBadgeResolver.t.sol index 6d7cecc..d937caf 100644 --- a/test/ScrollBadgeResolver.t.sol +++ b/test/ScrollBadgeResolver.t.sol @@ -48,6 +48,7 @@ contract ScrollBadgeTest is ScrollBadgeTestBase { function testResolverToggleBadgeOnlyOwner(address notOwner, address anyBadge, bool enable) external { vm.assume(notOwner != address(this)); + vm.assume(notOwner != PROXY_ADMIN_ADDRESS); vm.prank(notOwner); vm.expectRevert("Ownable: caller is not the owner"); resolver.toggleBadge(anyBadge, enable); @@ -55,6 +56,7 @@ contract ScrollBadgeTest is ScrollBadgeTestBase { function testResolverToggleWhitelistOnlyOwner(address notOwner, bool enable) external { vm.assume(notOwner != address(this)); + vm.assume(notOwner != PROXY_ADMIN_ADDRESS); vm.prank(notOwner); vm.expectRevert("Ownable: caller is not the owner"); resolver.toggleWhitelist(enable); diff --git a/test/ScrollBadgeTestBase.sol b/test/ScrollBadgeTestBase.sol index a82359f..7f3f72f 100644 --- a/test/ScrollBadgeTestBase.sol +++ b/test/ScrollBadgeTestBase.sol @@ -32,7 +32,7 @@ contract ScrollBadgeTestBase is Test { address internal constant alice = address(1); address internal constant bob = address(2); - address private constant PROXY_ADMIN_ADDRESS = 0x2000000000000000000000000000000000000000; + address internal constant PROXY_ADMIN_ADDRESS = 0x2000000000000000000000000000000000000000; function setUp() public virtual { // EAS infra