Skip to content

Commit

Permalink
chore: check if tokenAmount length is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
PraneshASP committed Apr 23, 2024
1 parent b4a3b94 commit aab6bcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/contracts/mocks/MockCCIPRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ contract MockCCIPRouter {
uint64 destinationChainSelector,
Client.EVM2AnyMessage calldata message
) external payable returns (bytes32) {
require(message.tokenAmounts.length == 1, "INVALID_TOKEN_COUNT");
// Make sure tokens can be pulled from the zapper contract
IERC20(message.tokenAmounts[0].token).transferFrom(
msg.sender,
Expand Down

0 comments on commit aab6bcf

Please sign in to comment.