-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e131829
commit df539f8
Showing
4 changed files
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
contracts/src/v0.8/ccip/test/capability/CCIPHome/CCIPHome.getCapabilityConfiguration.t.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.24; | ||
|
||
import {CCIPHomeTestSetup} from "./CCIPHomeTestSetup.t.sol"; | ||
|
||
contract CCIPHome_getCapabilityConfiguration is CCIPHomeTestSetup { | ||
function test_getCapabilityConfiguration_success() public view { | ||
bytes memory config = s_ccipHome.getCapabilityConfiguration(DEFAULT_DON_ID); | ||
assertEq(config.length, 0); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
contracts/src/v0.8/ccip/test/capability/CCIPHome/CCIPHome.supportsInterface.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.24; | ||
|
||
import {ICapabilityConfiguration} from "../../../../keystone/interfaces/ICapabilityConfiguration.sol"; | ||
|
||
import {IERC165} from "../../../../vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/IERC165.sol"; | ||
import {CCIPHomeTestSetup} from "./CCIPHomeTestSetup.t.sol"; | ||
|
||
contract CCIPHome_supportsInterface is CCIPHomeTestSetup { | ||
function test_supportsInterface_success() public view { | ||
assertTrue(s_ccipHome.supportsInterface(type(IERC165).interfaceId)); | ||
assertTrue(s_ccipHome.supportsInterface(type(ICapabilityConfiguration).interfaceId)); | ||
} | ||
} |