Skip to content

Commit

Permalink
fix(test): use _mockAdaptersForwardMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
Karrq committed Apr 30, 2024
1 parent 8d0bfb1 commit bb3c20e
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 bb3c20e

Please sign in to comment.