Skip to content

Commit

Permalink
fix: trial fix for smoke tests
Browse files Browse the repository at this point in the history
Signed-off-by: 0xsuryansh <suryansh.shrivastava@smartcontract.com>
  • Loading branch information
0xsuryansh committed Aug 5, 2024
1 parent fb7d2b3 commit ad0aba6
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1490,10 +1490,17 @@ func (args *ManualExecArgs) execute(report *commit_store.CommitStoreCommitReport
msg.GasLimit = args.GasLimit
}

destGasAmounts := make([]*big.Int, len(msg.TokenAmounts))

// Initialize each element in the slice to a new big.Int value in one line using a loop
for i := range destGasAmounts {
destGasAmounts[i] = new(big.Int)
}

// CCIP-2950 create a new object for evm_2_evm_offramp.EVM2EVMOffRampGasLimitOverride
evm2evmOffRampGasLimitOverride := &evm_2_evm_offramp.EVM2EVMOffRampGasLimitOverride{
ReceiverExecutionGasLimit: msg.GasLimit,
DestGasAmounts: args.destGasAmounts,
DestGasAmounts: destGasAmounts,
}

manualExecGasLimits = append(manualExecGasLimits, evm2evmOffRampGasLimitOverride)
Expand Down

0 comments on commit ad0aba6

Please sign in to comment.