Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AnieeG committed Apr 3, 2024
1 parent 1cecde4 commit 34121dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration-tests/ccip-tests/actions/ccip_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion integration-tests/ccip-tests/load/ccip_loadgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/ccip-tests/testsetups/ccip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

Expand Down

0 comments on commit 34121dc

Please sign in to comment.