Skip to content

Commit 959e9d3

Browse files
committed
test revoke too
1 parent 9d39c49 commit 959e9d3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/ethereum-contracts/test/foundry/superfluid/Superfluid.t.sol

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,16 @@ contract SuperfluidIntegrationTest is FoundrySuperfluidTester {
117117
hostWithAllowList.registerApp(mockSuperApp, SuperAppDefinitions.APP_LEVEL_FINAL);
118118
vm.stopPrank();
119119
vm.assertTrue(hostWithAllowList.isApp(mockSuperApp));
120+
121+
// revoke permission from alice
122+
vm.startPrank(allowListOwner);
123+
AllowList(allowlistAddress).revokePermission(alice);
124+
vm.stopPrank();
125+
126+
// as alice, try to register a superapp - should revert
127+
vm.startPrank(alice);
128+
vm.expectRevert(ISuperfluid.HOST_NO_APP_REGISTRATION_PERMISSION.selector);
129+
hostWithAllowList.registerApp(mockSuperApp, SuperAppDefinitions.APP_LEVEL_FINAL);
130+
vm.stopPrank();
120131
}
121132
}

0 commit comments

Comments
 (0)