diff --git a/deployment/ccip/changeset/test_helpers.go b/deployment/ccip/changeset/test_helpers.go index 5e8705d4757..f84519b0c60 100644 --- a/deployment/ccip/changeset/test_helpers.go +++ b/deployment/ccip/changeset/test_helpers.go @@ -16,6 +16,7 @@ import ( "github.com/ethereum/go-ethereum/core/types" "github.com/pkg/errors" "github.com/smartcontractkit/ccip-owner-contracts/pkg/gethwrappers" + "github.com/smartcontractkit/chainlink-ccip/pluginconfig" commonconfig "github.com/smartcontractkit/chainlink-common/pkg/config" @@ -400,8 +401,10 @@ func CCIPSendRequest( if err != nil { return nil, 0, errors.Wrap(deployment.MaybeDataErr(err), "failed to get fee") } + bufferedFee := new(big.Int).Mul(fee, big.NewInt(110)) // adding a 10% buffer + bufferedFee.Div(bufferedFee, big.NewInt(100)) if msg.FeeToken == common.HexToAddress("0x0") { - e.Chains[src].DeployerKey.Value = fee + e.Chains[src].DeployerKey.Value = bufferedFee defer func() { e.Chains[src].DeployerKey.Value = nil }() } tx, err := r.CcipSend( diff --git a/integration-tests/smoke/ccip/ccip_batching_test.go b/integration-tests/smoke/ccip/ccip_batching_test.go index 8174c313bce..bec49f988e8 100644 --- a/integration-tests/smoke/ccip/ccip_batching_test.go +++ b/integration-tests/smoke/ccip/ccip_batching_test.go @@ -475,7 +475,7 @@ func genMessages( Target: sourceRouter.Address(), AllowFailure: false, CallData: calldata, - Value: bufferedFee, + Value: bufferedFee, }) }