From 34121dc09d5f0fc2c0af64b58ff53802dc421053 Mon Sep 17 00:00:00 2001 From: AnieeG Date: Wed, 3 Apr 2024 11:37:42 -0700 Subject: [PATCH] updates --- integration-tests/ccip-tests/actions/ccip_helpers.go | 2 +- integration-tests/ccip-tests/load/ccip_loadgen.go | 3 ++- integration-tests/ccip-tests/testsetups/ccip.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/integration-tests/ccip-tests/actions/ccip_helpers.go b/integration-tests/ccip-tests/actions/ccip_helpers.go index 1abd46b516..6fd94e8152 100644 --- a/integration-tests/ccip-tests/actions/ccip_helpers.go +++ b/integration-tests/ccip-tests/actions/ccip_helpers.go @@ -1478,7 +1478,7 @@ func (sourceCCIP *SourceCCIPModule) SendRequest( timeNow := time.Now() feeToken := common.HexToAddress(sourceCCIP.Common.FeeToken.Address()) // initiate the transfer - // if the token address is 0x0 it will use Native as fee token and the fee amount should be mentioned in bind.TransactOpts's value + // if the fee token address is 0x0 it will use Native as fee token and the fee amount should be mentioned in bind.TransactOpts's value if feeToken != (common.Address{}) { sendTx, err = sourceCCIP.Common.Router.CCIPSendAndProcessTx(destChainSelector, msg, nil) if err != nil { diff --git a/integration-tests/ccip-tests/load/ccip_loadgen.go b/integration-tests/ccip-tests/load/ccip_loadgen.go index 3bf3d93a60..9dbc3e3ada 100644 --- a/integration-tests/ccip-tests/load/ccip_loadgen.go +++ b/integration-tests/ccip-tests/load/ccip_loadgen.go @@ -205,7 +205,8 @@ func (c *CCIPE2ELoad) Call(_ *wasp.Generator) *wasp.Response { if feeToken != common.HexToAddress("0x0") { sendTx, err = sourceCCIP.Common.Router.CCIPSend(destChainSelector, msg, nil) } else { - sendTx, err = sourceCCIP.Common.Router.CCIPSend(destChainSelector, msg, fee) + // add a bit buffer to fee + sendTx, err = sourceCCIP.Common.Router.CCIPSend(destChainSelector, msg, new(big.Int).Add(big.NewInt(1e2), fee)) } if err != nil { stats.UpdateState(lggr, 0, testreporters.TX, time.Since(startTime), testreporters.Failure) diff --git a/integration-tests/ccip-tests/testsetups/ccip.go b/integration-tests/ccip-tests/testsetups/ccip.go index 863106b79a..2025db2f58 100644 --- a/integration-tests/ccip-tests/testsetups/ccip.go +++ b/integration-tests/ccip-tests/testsetups/ccip.go @@ -861,7 +861,7 @@ func CCIPDefaultTestSetUp( setUpArgs.WaitForPriceUpdates() // if dynamic price update is required if setUpArgs.Cfg.TestGroupInput.DynamicPriceUpdateInterval != nil { - require.NoError(t, setUpArgs.SetupDynamicTokenPriceUpdates(), "setting up dynamic price update shoud not fail") + require.NoError(t, setUpArgs.SetupDynamicTokenPriceUpdates(), "setting up dynamic price update should not fail") } }