You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The EVM2AnyMessage struct contains the field extraArgs in which you can pass _argsToBytes(EVMExtraArgsV1) in which EVMExtraArgsV1 has the member gasLimit. This custom gas limit is used for sending data with your cross chain message via the data member of EVM2AnyMessage. When sending a cross-chain message with no data data: "", the gasLimit can be set to zero.
Issue
In a fork test, the test fails due to an OutOfGas error. This same test passes if using the default gasLimit of 200_000. This implies that CLL is using the custom gas limit to execute the cross-chain transfer in the case of custom token pools.
Steps to Reproduce
Create a Foundry fork test that calls the following function to create and send a CCIP message:
Expected Behaviour
The
EVM2AnyMessage
struct contains the fieldextraArgs
in which you can pass_argsToBytes(EVMExtraArgsV1)
in whichEVMExtraArgsV1
has the membergasLimit
. This custom gas limit is used for sending data with your cross chain message via thedata
member ofEVM2AnyMessage
. When sending a cross-chain message with no datadata: ""
, thegasLimit
can be set to zero.Issue
In a fork test, the test fails due to an
OutOfGas
error. This same test passes if using the defaultgasLimit
of200_000
. This implies that CLL is using the custom gas limit to execute the cross-chain transfer in the case of custom token pools.Steps to Reproduce
Create a Foundry fork test that calls the following function to create and send a CCIP message:
Outcome
The test fails unless using the default value for
gasLimit
The text was updated successfully, but these errors were encountered: