Skip to content

Commit

Permalink
Merge pull request #16 from Moonsong-Labs/fix/forwarder-test
Browse files Browse the repository at this point in the history
Fix `forwardMessage` mock in `Forwarder.t.sol`
  • Loading branch information
Karrq authored May 1, 2024
2 parents 8d0bfb1 + bb3c20e commit 9679a47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions tests/BaseCCForwarder.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,6 @@ contract BaseCCForwarderTest is BaseTest, CrossChainForwarder {
abi.encodeWithSelector(IBaseAdapter.setupPayments.selector),
abi.encode()
);
vm.mockCall(
address(currentChainBridgeAdapter),
abi.encodeWithSelector(IBaseAdapter.forwardMessage.selector),
abi.encode()
);
_enableBridgeAdapters(bridgeAdaptersInfo);
}

Expand Down
1 change: 1 addition & 0 deletions tests/Forwarder.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ contract ForwarderTest is BaseCCForwarderTest {
validateTransactionNonceIncrement
validateTransactionRegistry(extendedTx)
{
_mockAdaptersForwardMessage(extendedTx.envelope.destinationChainId);
UsedAdapter[] memory usedAdapters = _currentlyUsedAdaptersByChain[
extendedTx.envelope.destinationChainId
];
Expand Down

0 comments on commit 9679a47

Please sign in to comment.