Skip to content

Commit

Permalink
provide double fee to the msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkouv committed Nov 26, 2024
1 parent a38ca78 commit 4ed28e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions deployment/ccip/changeset/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -31,11 +32,12 @@ import (

chainsel "github.com/smartcontractkit/chain-selectors"

"github.com/smartcontractkit/chainlink-ccip/pkg/reader"
cciptypes "github.com/smartcontractkit/chainlink-ccip/pkg/types/ccipocr3"
jobv1 "github.com/smartcontractkit/chainlink-protos/job-distributor/v1/job"
"github.com/smartcontractkit/chainlink-testing-framework/lib/utils/testcontext"

"github.com/smartcontractkit/chainlink-ccip/pkg/reader"
cciptypes "github.com/smartcontractkit/chainlink-ccip/pkg/types/ccipocr3"

"github.com/smartcontractkit/chainlink-common/pkg/logger"
commonutils "github.com/smartcontractkit/chainlink-common/pkg/utils"

Expand Down Expand Up @@ -401,7 +403,7 @@ func CCIPSendRequest(
return nil, 0, errors.Wrap(deployment.MaybeDataErr(err), "failed to get fee")
}
if msg.FeeToken == common.HexToAddress("0x0") {
e.Chains[src].DeployerKey.Value = fee
e.Chains[src].DeployerKey.Value = fee.Mul(fee, big.NewInt(2)) // 2x fee to prevent flaky tests
defer func() { e.Chains[src].DeployerKey.Value = nil }()
}
tx, err := r.CcipSend(
Expand Down

0 comments on commit 4ed28e3

Please sign in to comment.