Skip to content

Commit

Permalink
add line breaks to test
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanRHall committed Aug 1, 2024
1 parent b703bf1 commit 1eeb738
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/src/v0.8/ccip/test/onRamp/EVM2EVMMultiOnRamp.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1eeb738

Please sign in to comment.