From 1eeb738ef8f130c2776b7da498ef95cacfd34431 Mon Sep 17 00:00:00 2001 From: Ryan Hall Date: Thu, 1 Aug 2024 16:46:03 -0400 Subject: [PATCH] add line breaks to test --- contracts/src/v0.8/ccip/test/onRamp/EVM2EVMMultiOnRamp.t.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/src/v0.8/ccip/test/onRamp/EVM2EVMMultiOnRamp.t.sol b/contracts/src/v0.8/ccip/test/onRamp/EVM2EVMMultiOnRamp.t.sol index 49ed336d49..7ebf720dff 100644 --- a/contracts/src/v0.8/ccip/test/onRamp/EVM2EVMMultiOnRamp.t.sol +++ b/contracts/src/v0.8/ccip/test/onRamp/EVM2EVMMultiOnRamp.t.sol @@ -144,15 +144,18 @@ contract EVM2EVMMultiOnRamp_forwardFromRouter is EVM2EVMMultiOnRampSetup { message.extraArgs = Client._argsToBytes(Client.EVMExtraArgsV1({gasLimit: GAS_LIMIT * 2})); uint256 feeAmount = 1234567890; IERC20(s_sourceFeeToken).transferFrom(OWNER, address(s_onRamp), feeAmount); + // Change the source router for this lane address newRouter = makeAddr("NEW ROUTER"); vm.stopPrank(); vm.prank(OWNER); s_onRamp.applyDestChainConfigUpdates(_generateDestChainConfigArgs(newRouter)); + // forward fails from wrong router vm.prank(address(s_sourceRouter)); vm.expectRevert(EVM2EVMMultiOnRamp.MustBeCalledByRouter.selector); s_onRamp.forwardFromRouter(DEST_CHAIN_SELECTOR, message, feeAmount, OWNER); + // forward succeeds from correct router vm.prank(newRouter); s_onRamp.forwardFromRouter(DEST_CHAIN_SELECTOR, message, feeAmount, OWNER);