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 19, 2024
1 parent 19c21b9 commit ea905d1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/invariant/MockAdaptor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ interface MessageReceiver {
}

contract MockAdaptor is Test, IChildBridgeAdaptor, IRootBridgeAdaptor {

uint256 chainId;
MessageReceiver messageReceiver;
MockAdaptor otherAdaptor;
Expand All @@ -23,7 +22,11 @@ contract MockAdaptor is Test, IChildBridgeAdaptor, IRootBridgeAdaptor {
otherAdaptor = MockAdaptor(_otherAdaptor);
}

function sendMessage(bytes calldata payload, address /*refundRecipient*/) external payable override(IChildBridgeAdaptor, IRootBridgeAdaptor) {
function sendMessage(bytes calldata payload, address /*refundRecipient*/ )
external
payable
override(IChildBridgeAdaptor, IRootBridgeAdaptor)
{
otherAdaptor.onMessageReceive(payload);
vm.selectFork(chainId);
}
Expand All @@ -32,4 +35,4 @@ contract MockAdaptor is Test, IChildBridgeAdaptor, IRootBridgeAdaptor {
vm.selectFork(chainId);
messageReceiver.onMessageReceive(data);
}
}
}

0 comments on commit ea905d1

Please sign in to comment.