Skip to content

Commit

Permalink
Multisubnet test (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoAtwill authored Feb 27, 2024
1 parent 21820a5 commit ebc178f
Show file tree
Hide file tree
Showing 2 changed files with 614 additions and 2 deletions.
18 changes: 18 additions & 0 deletions contracts/test/helpers/TestUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,24 @@ contract MockIpcContractFallback is IpcHandler {
}
}

contract MockIpcContractRevert is IpcHandler {
bool public reverted = true;

/* solhint-disable-next-line unused-vars */
function handleIpcMessage(IpcEnvelope calldata) external payable returns (bytes memory ret) {
// success execution of this methid will set reverted to false, by default it's true
reverted = false;

// since this reverts, `reverted` should always be true
revert();
}

fallback() external {
console.log("here2");
revert();
}
}

contract MockIpcContractPayable is IpcHandler {
/* solhint-disable-next-line unused-vars */
function handleIpcMessage(IpcEnvelope calldata) external payable returns (bytes memory ret) {
Expand Down
Loading

0 comments on commit ebc178f

Please sign in to comment.