Skip to content

Commit

Permalink
Update MockAdaptor.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgcyx committed Feb 20, 2024
1 parent 0375afd commit 22caaca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/invariant/MockAdaptor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ contract MockAdaptor is Test, IChildBridgeAdaptor, IRootBridgeAdaptor {
{
// Switch to the other chain.
vm.selectFork(otherChainId);
console.log(""); // Due to a foundry bug, remove this logging will cause forge to crash.
onMessageReceive(payload);
// Switch back to the original chain.
// Due to symmetry, the original chain is now stored as otherChainId.
vm.selectFork(otherChainId);
}

function onMessageReceive(bytes calldata data) public {
console.log(""); // Due to a foundry bug, remove this logging will cause forge to crash.
messageReceiver.onMessageReceive(data);
}
}

0 comments on commit 22caaca

Please sign in to comment.