File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ import {
1212import {IIBCHandler} from "@hyperledger-labs/yui-ibc-solidity/contracts/core/25-handler/IIBCHandler.sol " ;
1313import {Packet} from "@hyperledger-labs/yui-ibc-solidity/contracts/core/04-channel/IIBCChannel.sol " ;
1414
15+ import {IAccessControl} from "@openzeppelin/contracts/access/IAccessControl.sol " ;
16+
1517contract DummyHandler {}
1618
1719contract TestableCrossModule is CrossModule {
@@ -72,9 +74,11 @@ contract CrossModuleTest is Test {
7274 assertTrue (mod.hasRole (mod.IBC_ROLE (), address (handler)));
7375 }
7476
75- function test_SupportsInterface_IIBCModule_And_IIBCModuleInitializer () public view {
77+ function test_SupportsInterface_IIBC_IAccessControl_And_Unsupported () public view {
7678 assertTrue (mod.supportsInterface (type (IIBCModule).interfaceId));
7779 assertTrue (mod.supportsInterface (type (IIBCModuleInitializer).interfaceId));
80+ assertTrue (mod.supportsInterface (type (IAccessControl).interfaceId));
81+ assertFalse (mod.supportsInterface (0xDEADBEEF ));
7882 }
7983
8084 function test_onRecvPacket_Reverts_WithoutIbcRole () public {
You can’t perform that action at this time.
0 commit comments