Skip to content

Commit

Permalink
Any2EVMTokenTransfer struct packing
Browse files Browse the repository at this point in the history
Signed-off-by: 0xsuryansh <[email protected]>
  • Loading branch information
0xsuryansh committed Sep 13, 2024
1 parent 9442c73 commit 41dbd53
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions contracts/src/v0.8/ccip/libraries/Internal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,13 @@ library Internal {

struct Any2EVMTokenTransfer {
bytes sourcePoolAddress;
address destTokenAddress; // ──╮
uint32 destGasAmount;//────────╯
address destTokenAddress; // ──╮ Address of destination token
uint32 destGasAmount;//────────╯ The amount of gas available for the releaseOrMint and transfer calls on the offRamp.
// Optional pool data to be transferred to the destination chain. Be default this is capped at
// CCIP_LOCK_OR_BURN_V1_RET_BYTES bytes. If more data is required, the TokenTransferFeeConfig.destBytesOverhead
// has to be set for the specific token.
bytes extraData;
uint256 amount; // Amount of tokens.
// The amount of gas available for the releaseOrMint and transfer calls on the offRamp.

}

/// @notice Family-agnostic message routed to an OffRamp
Expand Down

0 comments on commit 41dbd53

Please sign in to comment.