File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
packages/ethereum-contracts/test/foundry/superfluid Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments