From ea905d1303cee4be4b5dbd03f63ccd7b58b381bc Mon Sep 17 00:00:00 2001 From: wcgcyx Date: Mon, 19 Feb 2024 14:58:13 +1000 Subject: [PATCH] Update MockAdaptor.sol --- test/invariant/MockAdaptor.sol | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/invariant/MockAdaptor.sol b/test/invariant/MockAdaptor.sol index d774342c..6e2b9c30 100644 --- a/test/invariant/MockAdaptor.sol +++ b/test/invariant/MockAdaptor.sol @@ -10,7 +10,6 @@ interface MessageReceiver { } contract MockAdaptor is Test, IChildBridgeAdaptor, IRootBridgeAdaptor { - uint256 chainId; MessageReceiver messageReceiver; MockAdaptor otherAdaptor; @@ -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); } @@ -32,4 +35,4 @@ contract MockAdaptor is Test, IChildBridgeAdaptor, IRootBridgeAdaptor { vm.selectFork(chainId); messageReceiver.onMessageReceive(data); } -} \ No newline at end of file +}