From 21c82b7400fa3cea1f3597db1bcf703031a2c619 Mon Sep 17 00:00:00 2001 From: "valerii.kabisov" Date: Sat, 21 Sep 2024 00:57:58 +0900 Subject: [PATCH] [CCIP-3376] lint --- .../services/ocr2/plugins/ccip/estimatorconfig/config_test.go | 3 ++- .../ccip/internal/ccipdata/commit_store_reader_test.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/services/ocr2/plugins/ccip/estimatorconfig/config_test.go b/core/services/ocr2/plugins/ccip/estimatorconfig/config_test.go index c1e0191363..0ed7510591 100644 --- a/core/services/ocr2/plugins/ccip/estimatorconfig/config_test.go +++ b/core/services/ocr2/plugins/ccip/estimatorconfig/config_test.go @@ -6,9 +6,10 @@ import ( "math/big" "testing" - mocks2 "github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/estimatorconfig/mocks" "github.com/stretchr/testify/require" + mocks2 "github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/estimatorconfig/mocks" + "github.com/smartcontractkit/chainlink-common/pkg/types/ccip" "github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/estimatorconfig" "github.com/smartcontractkit/chainlink/v2/core/services/ocr2/plugins/ccip/internal/ccipdata/mocks" diff --git a/core/services/ocr2/plugins/ccip/internal/ccipdata/commit_store_reader_test.go b/core/services/ocr2/plugins/ccip/internal/ccipdata/commit_store_reader_test.go index 04d283c083..48b7f3a8ce 100644 --- a/core/services/ocr2/plugins/ccip/internal/ccipdata/commit_store_reader_test.go +++ b/core/services/ocr2/plugins/ccip/internal/ccipdata/commit_store_reader_test.go @@ -375,8 +375,8 @@ func TestCommitStoreReaders(t *testing.T) { var execGasPrice, daGasPrice *big.Int feeEstimatorConfig.On("ModifyGasPriceComponents", mock.Anything, mock.Anything, mock.Anything).Run(func(args mock.Arguments) { - execGasPrice = args.Get(0).(*big.Int) - daGasPrice = args.Get(1).(*big.Int) + execGasPrice = args.Get(1).(*big.Int) + daGasPrice = args.Get(2).(*big.Int) }).Return(execGasPrice, daGasPrice, nil).Maybe() gpe, err := cr.GasPriceEstimator(ctx)