Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump geth v1.14.11; rm hacks #11809

Merged
merged 88 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
fdca8cb
bump geth v1.13.14; rm hack; fix simulated backend; run make generate
jmank88 Jan 18, 2024
33eb588
Merge branch 'develop' into bump-geth
reductionista May 15, 2024
107d9f8
Update simulated geth client wrapper & LogPoller tests (#13204)
reductionista Jun 4, 2024
c74d14e
Merge remote-tracking branch 'origin/develop' into bump-geth
jmank88 Jun 7, 2024
d850aec
cleanup
jmank88 Jun 7, 2024
3c90fc9
Merge remote-tracking branch 'origin/develop' into bump-geth
jmank88 Jun 11, 2024
8baa056
Merge branch 'develop' into bump-geth
jmank88 Jun 17, 2024
e84fae0
Merge remote-tracking branch 'origin/develop' into bump-geth
jmank88 Jun 24, 2024
24c72ac
make generate
jmank88 Jun 24, 2024
da4c55d
cleanup
jmank88 Jun 24, 2024
21240ec
race-free simulated backend commits
jmank88 Jun 26, 2024
49438d2
Merge remote-tracking branch 'origin/develop' into bump-geth
jmank88 Jun 26, 2024
0fb5bd1
race free commits
jmank88 Jun 26, 2024
722a0b9
fix tests by adding commits
jmank88 Jun 26, 2024
73c15b6
bump geth to 1.13.15
jmank88 Jun 26, 2024
ad826a9
fix more races
jmank88 Jun 26, 2024
2cb83e3
Remove inconsistent named param from return signature
reductionista Jun 27, 2024
5705287
insert temporary skips
jmank88 Jul 7, 2024
b5f8154
make generate
jmank88 Jul 7, 2024
18a90b6
Merge branch 'develop' into bump-geth
jmank88 Jul 7, 2024
dae530a
skip more tests
jmank88 Jul 7, 2024
71c386e
Merge remote-tracking branch 'origin/develop' into bump-geth
jmank88 Jul 8, 2024
94f5f97
skip more tests; fill zeroed timestamp on insert
jmank88 Jul 9, 2024
3cc4e1c
fix race for commit
jmank88 Jul 9, 2024
acd6818
core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/logprovider: ru…
jmank88 Jul 9, 2024
c2cc19c
re-enable some tests
jmank88 Jul 9, 2024
30005e4
consolidate finalization helpers
jmank88 Jul 9, 2024
96fd9f3
fix some tests with real timestamps
jmank88 Jul 9, 2024
1df4503
simplify
jmank88 Jul 9, 2024
8e6f13d
core/services/vrf/solidity_cross_tests: raise gas estimate upper boun…
jmank88 Jul 9, 2024
a1d5158
cleanup and patch for geth bug
jmank88 Jul 10, 2024
1369b4f
Merge branch 'develop' into bump-geth
jmank88 Jul 10, 2024
5fb0656
new geth error; vrf test fixes
jmank88 Aug 23, 2024
be5668e
Merge remote-tracking branch 'origin/develop' into bump-geth
jmank88 Aug 23, 2024
39ce4f9
fix ccip tests
AnieeG Aug 26, 2024
a591889
merging with recent
AnieeG Aug 26, 2024
39175a2
fix clo tests
AnieeG Aug 26, 2024
6d5e662
more fixes
AnieeG Aug 27, 2024
27639ef
Merge remote-tracking branch 'origin/develop' into bump-geth
jmank88 Aug 27, 2024
ac3c1b7
fix test var name
jmank88 Aug 29, 2024
9222f84
Merge branch 'bump-geth' of github.com:smartcontractkit/chainlink int…
AnieeG Aug 30, 2024
06abd55
update with recent develop
AnieeG Aug 30, 2024
5ca9d5d
fix compile error
AnieeG Aug 31, 2024
2858709
upgrade to 14.7
AnieeG Sep 3, 2024
e3afda0
merge
AnieeG Sep 3, 2024
3733597
fix lint
AnieeG Sep 3, 2024
0123dba
lint issues
AnieeG Sep 3, 2024
779e9ea
make generate
AnieeG Sep 3, 2024
94d936f
fix more tests
AnieeG Sep 4, 2024
d9a7c59
Merge remote-tracking branch 'origin/develop' into bump-geth
jmank88 Oct 3, 2024
5dab2a8
skip failing tests
jmank88 Oct 3, 2024
f8ef058
skip tests; linter issues
jmank88 Oct 3, 2024
cdb2752
Merge remote-tracking branch 'origin/develop' into bump-geth
jmank88 Oct 4, 2024
e33759c
fix race & lint issues
jmank88 Oct 4, 2024
4bc224e
BCFR-1047 Fix HT Tests (#14807)
dhaidashenko Oct 16, 2024
7e60b1a
Simulated defaults (#14986)
connorwstein Oct 29, 2024
e4b283f
Merge remote-tracking branch 'origin/develop' into bump-geth
jmank88 Oct 30, 2024
c5c66d3
core/chains/evm/txmgr: fix TestEthBroadcaster_ProcessUnstartedEthTxs_…
jmank88 Oct 30, 2024
36e9906
core/gethwrappers: regenerate
jmank88 Oct 30, 2024
730cd86
Merge branch 'develop' into bump-geth
jmank88 Nov 4, 2024
9b40b92
Merge remote-tracking branch 'origin/develop' into bump-geth
jmank88 Nov 4, 2024
916514e
bump geth to 1.14.11 (#15041)
jmank88 Nov 5, 2024
fc19cfa
Another cltest remove
connorwstein Nov 5, 2024
817881c
Merge develop
connorwstein Nov 5, 2024
1f022c8
Go mod tidy
connorwstein Nov 5, 2024
c6110fa
Regen lint and fix LLO test
connorwstein Nov 5, 2024
eaf881b
Enable some more tests
connorwstein Nov 5, 2024
66c4f61
core: prefer simulated backend interface in order to wrap with syncBa…
jmank88 Nov 6, 2024
c00872f
fix race: cleanup int conversion
jmank88 Nov 6, 2024
a7928b4
lint
jmank88 Nov 6, 2024
e025195
lint & fix
jmank88 Nov 6, 2024
e14cac3
lint
jmank88 Nov 6, 2024
94e5303
lint
jmank88 Nov 6, 2024
9fd0f65
unskip and fix
jmank88 Nov 6, 2024
f2d6111
Fix TestIntegration_OCR2_plugins
connorwstein Nov 6, 2024
0e5006c
Fix more OCR tests
connorwstein Nov 6, 2024
cf8095c
Merge conflicts
connorwstein Nov 6, 2024
5703da0
update t.Skip() messages
jmank88 Nov 7, 2024
8f906d0
update changeset
jmank88 Nov 7, 2024
75aa925
Resurrect CCIP tests
connorwstein Nov 8, 2024
5631e24
Merge branch 'bump-geth' of github.com:smartcontractkit/chainlink int…
connorwstein Nov 8, 2024
a1bec7d
1 more CCIP test
connorwstein Nov 8, 2024
9755371
Lint
connorwstein Nov 8, 2024
3676ee3
Merge branch 'develop' into bump-geth
connorwstein Nov 8, 2024
238b7f7
replaces
jmank88 Nov 9, 2024
3914b0c
Merge remote-tracking branch 'origin/develop' into bump-geth
jmank88 Nov 9, 2024
a570f28
lint
jmank88 Nov 9, 2024
58a02ee
Merge branch 'develop' into bump-geth
jmank88 Nov 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/purple-shrimps-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Upgrade go-ethereum to v1.14.11 #internal
5 changes: 5 additions & 0 deletions .changeset/silent-goats-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Fix HeadTracker tests caused by simulated client update #internal
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ postgres 15.1
helm 3.10.3
golangci-lint 1.61.0
protoc 25.1
python 3.10.5
2 changes: 1 addition & 1 deletion common/txmgr/broadcaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ func (eb *Broadcaster[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, SEQ, FEE]) hand
case client.Unknown:
eb.SvcErrBuffer.Append(err)
lgr.Criticalw(`Unknown error occurred while handling tx queue in ProcessUnstartedTxs. This chain/RPC client may not be supported. `+
`Urgent resolution required, Chainlink is currently operating in a degraded state and may miss transactions`, "attempt", attempt)
`Urgent resolution required, Chainlink is currently operating in a degraded state and may miss transactions`, "attempt", attempt, "err", err)
nextSequence, e := eb.client.PendingSequenceAt(ctx, etx.FromAddress)
if e != nil {
err = multierr.Combine(e, err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"time"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethclient/simulated"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/zap/zapcore"
Expand Down Expand Up @@ -79,6 +79,7 @@ func TestCCIPReader_CommitReportsGTETimestamp(t *testing.T) {
tokenA := common.HexToAddress("123")
const numReports = 5

var firstReportTs uint64
for i := 0; i < numReports; i++ {
_, err := s.contract.EmitCommitReportAccepted(s.auth, ccip_reader_tester.OffRampCommitReport{
PriceUpdates: ccip_reader_tester.InternalPriceUpdates{
Expand Down Expand Up @@ -116,7 +117,12 @@ func TestCCIPReader_CommitReportsGTETimestamp(t *testing.T) {
},
})
assert.NoError(t, err)
s.sb.Commit()
bh := s.sb.Commit()
b, err := s.sb.Client().BlockByHash(ctx, bh)
require.NoError(t, err)
if firstReportTs == 0 {
firstReportTs = b.Time()
}
}

// Need to replay as sometimes the logs are not picked up by the log poller (?)
Expand All @@ -129,7 +135,9 @@ func TestCCIPReader_CommitReportsGTETimestamp(t *testing.T) {
reports, err = s.reader.CommitReportsGTETimestamp(
ctx,
chainD,
time.Unix(30, 0), // Skips first report, simulated backend report timestamps are [20, 30, 40, ...]
// Skips first report
//nolint:gosec // this won't overflow
time.Unix(int64(firstReportTs)+1, 0),
10,
)
require.NoError(t, err)
Expand All @@ -144,10 +152,8 @@ func TestCCIPReader_CommitReportsGTETimestamp(t *testing.T) {
assert.Equal(t, cciptypes.SeqNum(20), reports[0].Report.MerkleRoots[0].SeqNumsRange.End())
assert.Equal(t, "0x0200000000000000000000000000000000000000000000000000000000000000",
reports[0].Report.MerkleRoots[0].MerkleRoot.String())

assert.Equal(t, tokenA.String(), string(reports[0].Report.PriceUpdates.TokenPriceUpdates[0].TokenID))
assert.Equal(t, uint64(1000), reports[0].Report.PriceUpdates.TokenPriceUpdates[0].Price.Uint64())

assert.Equal(t, chainD, reports[0].Report.PriceUpdates.GasPriceUpdates[0].ChainSel)
assert.Equal(t, uint64(90), reports[0].Report.PriceUpdates.GasPriceUpdates[0].GasPrice.Uint64())
}
Expand Down Expand Up @@ -478,21 +484,21 @@ func testSetup(
// Set up the genesis account with balance
blnc, ok := big.NewInt(0).SetString("999999999999999999999999999999999999", 10)
assert.True(t, ok)
alloc := map[common.Address]core.GenesisAccount{crypto.PubkeyToAddress(privateKey.PublicKey): {Balance: blnc}}
simulatedBackend := backends.NewSimulatedBackend(alloc, 0)
alloc := map[common.Address]ethtypes.Account{crypto.PubkeyToAddress(privateKey.PublicKey): {Balance: blnc}}
simulatedBackend := simulated.NewBackend(alloc, simulated.WithBlockGasLimit(0))
// Create a transactor

auth, err := bind.NewKeyedTransactorWithChainID(privateKey, big.NewInt(chainID))
assert.NoError(t, err)
auth.GasLimit = uint64(0)

// Deploy the contract
address, _, _, err := ccip_reader_tester.DeployCCIPReaderTester(auth, simulatedBackend)
address, _, _, err := ccip_reader_tester.DeployCCIPReaderTester(auth, simulatedBackend.Client())
assert.NoError(t, err)
simulatedBackend.Commit()

// Setup contract client
contract, err := ccip_reader_tester.NewCCIPReaderTester(address, simulatedBackend)
contract, err := ccip_reader_tester.NewCCIPReaderTester(address, simulatedBackend.Client())
assert.NoError(t, err)

lggr := logger.TestLogger(t)
Expand Down Expand Up @@ -582,7 +588,7 @@ func testSetup(
type testSetupData struct {
contractAddr common.Address
contract *ccip_reader_tester.CCIPReaderTester
sb *backends.SimulatedBackend
sb *simulated.Backend
auth *bind.TransactOpts
lp logpoller.LogPoller
cl client.Client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@ import (
"time"

mapset "github.com/deckarep/golang-set/v2"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
ethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient/simulated"
"github.com/stretchr/testify/require"

"github.com/smartcontractkit/chainlink-ccip/pkg/consts"
ccipreader "github.com/smartcontractkit/chainlink-ccip/pkg/reader"
"github.com/smartcontractkit/chainlink-ccip/pkg/types/ccipocr3"
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/ccip_home"
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/rmn_home"

"github.com/smartcontractkit/chainlink-common/pkg/types"

configsevm "github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/configs/evm"
Expand All @@ -30,8 +32,6 @@ import (
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/client"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/headtracker"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/logpoller"
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/ccip_home"
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/rmn_home"
kcr "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/keystone/generated/capabilities_registry"
"github.com/smartcontractkit/chainlink/v2/core/internal/testutils"
"github.com/smartcontractkit/chainlink/v2/core/internal/testutils/pgtest"
Expand Down Expand Up @@ -88,7 +88,7 @@ const (

type TestUniverse struct {
Transactor *bind.TransactOpts
Backend *backends.SimulatedBackend
Backend *simulated.Backend
CapReg *kcr.CapabilitiesRegistry
CCIPHome *ccip_home.CCIPHome
TestingT *testing.T
Expand All @@ -101,22 +101,22 @@ type TestUniverse struct {

func NewTestUniverse(ctx context.Context, t *testing.T, lggr logger.Logger) TestUniverse {
transactor := testutils.MustNewSimTransactor(t)
backend := backends.NewSimulatedBackend(core.GenesisAlloc{
backend := simulated.NewBackend(ethtypes.GenesisAlloc{
transactor.From: {Balance: assets.Ether(1000).ToInt()},
}, 30e6)
}, simulated.WithBlockGasLimit(30e6))

crAddress, _, _, err := kcr.DeployCapabilitiesRegistry(transactor, backend)
crAddress, _, _, err := kcr.DeployCapabilitiesRegistry(transactor, backend.Client())
require.NoError(t, err)
backend.Commit()

capReg, err := kcr.NewCapabilitiesRegistry(crAddress, backend)
capReg, err := kcr.NewCapabilitiesRegistry(crAddress, backend.Client())
require.NoError(t, err)

ccAddress, _, _, err := ccip_home.DeployCCIPHome(transactor, backend, crAddress)
ccAddress, _, _, err := ccip_home.DeployCCIPHome(transactor, backend.Client(), crAddress)
require.NoError(t, err)
backend.Commit()

cc, err := ccip_home.NewCCIPHome(ccAddress, backend)
cc, err := ccip_home.NewCCIPHome(ccAddress, backend.Client())
require.NoError(t, err)

db := pgtest.NewSqlxDB(t)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func TestRMNHomeReader_GetRMNNodesInfo(t *testing.T) {
)

// ================================Deploy and configure RMNHome===============================
rmnHomeAddress, _, rmnHome, err := rmn_home.DeployRMNHome(uni.Transactor, uni.Backend)
rmnHomeAddress, _, rmnHome, err := rmn_home.DeployRMNHome(uni.Transactor, uni.Backend.Client())
require.NoError(t, err)
uni.Backend.Commit()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"time"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
gethtypes "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethclient/simulated"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -228,8 +228,8 @@ func testSetup(ctx context.Context, t *testing.T, readerChain cciptypes.ChainSel
// Set up the genesis account with balance
blnc, ok := big.NewInt(0).SetString("999999999999999999999999999999999999", 10)
assert.True(t, ok)
alloc := map[common.Address]core.GenesisAccount{crypto.PubkeyToAddress(privateKey.PublicKey): {Balance: blnc}}
simulatedBackend := backends.NewSimulatedBackend(alloc, 0)
alloc := map[common.Address]gethtypes.Account{crypto.PubkeyToAddress(privateKey.PublicKey): {Balance: blnc}}
simulatedBackend := simulated.NewBackend(alloc, simulated.WithBlockGasLimit(0))
// Create a transactor

auth, err := bind.NewKeyedTransactorWithChainID(privateKey, big.NewInt(chainID))
Expand All @@ -238,12 +238,12 @@ func testSetup(ctx context.Context, t *testing.T, readerChain cciptypes.ChainSel

address, _, _, err := usdc_reader_tester.DeployUSDCReaderTester(
auth,
simulatedBackend,
simulatedBackend.Client(),
)
require.NoError(t, err)
simulatedBackend.Commit()

contract, err := usdc_reader_tester.NewUSDCReaderTester(address, simulatedBackend)
contract, err := usdc_reader_tester.NewUSDCReaderTester(address, simulatedBackend.Client())
require.NoError(t, err)

lggr := logger.TestLogger(t)
Expand Down Expand Up @@ -292,7 +292,7 @@ func testSetup(ctx context.Context, t *testing.T, readerChain cciptypes.ChainSel
type testSetupData struct {
contractAddr common.Address
contract *usdc_reader_tester.USDCReaderTester
sb *backends.SimulatedBackend
sb *simulated.Backend
auth *bind.TransactOpts
cl client.Client
reader types.ContractReader
Expand Down
34 changes: 16 additions & 18 deletions core/capabilities/ccip/ocrimpls/contract_transmitter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,11 @@ import (
"testing"
"time"

"github.com/smartcontractkit/chainlink-common/pkg/utils/tests"

"github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/ocrimpls"
cctypes "github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/types"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/config/toml"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/types"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient/simulated"
"github.com/jmoiron/sqlx"
"github.com/stretchr/testify/require"

Expand All @@ -27,7 +20,12 @@ import (
ocrtypes "github.com/smartcontractkit/libocr/offchainreporting2plus/types"

"github.com/smartcontractkit/chainlink-common/pkg/utils/mailbox"
"github.com/smartcontractkit/chainlink-common/pkg/utils/tests"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/config/toml"
evmtypes "github.com/smartcontractkit/chainlink/v2/core/chains/evm/types"

"github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/ocrimpls"
cctypes "github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/types"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/assets"
"github.com/smartcontractkit/chainlink/v2/core/chains/evm/client"
evmconfig "github.com/smartcontractkit/chainlink/v2/core/chains/evm/config"
Expand Down Expand Up @@ -182,7 +180,7 @@ func testTransmitter(

type testUniverse[RI any] struct {
simClient *client.SimulatedBackendClient
backend *backends.SimulatedBackend
backend *simulated.Backend
deployer *bind.TransactOpts
transmitters []common.Address
signers []common.Address
Expand Down Expand Up @@ -217,19 +215,19 @@ func newTestUniverse[RI any](t *testing.T, ks *keyringsAndSigners[RI]) *testUniv
transmitters = append(transmitters, key.Address)
}

backend := backends.NewSimulatedBackend(core.GenesisAlloc{
owner.From: core.GenesisAccount{
backend := simulated.NewBackend(types.GenesisAlloc{
owner.From: types.Account{
Balance: assets.Ether(1000).ToInt(),
},
transmitters[0]: core.GenesisAccount{
transmitters[0]: types.Account{
Balance: assets.Ether(1000).ToInt(),
},
}, 30e6)
}, simulated.WithBlockGasLimit(30e6))

ocr3HelperAddr, _, _, err := multi_ocr3_helper.DeployMultiOCR3Helper(owner, backend)
ocr3HelperAddr, _, _, err := multi_ocr3_helper.DeployMultiOCR3Helper(owner, backend.Client())
require.NoError(t, err)
backend.Commit()
wrapper, err := multi_ocr3_helper.NewMultiOCR3Helper(ocr3HelperAddr, backend)
wrapper, err := multi_ocr3_helper.NewMultiOCR3Helper(ocr3HelperAddr, backend.Client())
require.NoError(t, err)

// create the oracle identities for setConfig
Expand Down Expand Up @@ -605,8 +603,8 @@ func (d *TestDAOracleConfig) OracleType() *toml.DAOracleType {
return &oracleType
}

func (d *TestDAOracleConfig) OracleAddress() *types.EIP55Address {
a, err := types.NewEIP55Address("0x420000000000000000000000000000000000000F")
func (d *TestDAOracleConfig) OracleAddress() *evmtypes.EIP55Address {
a, err := evmtypes.NewEIP55Address("0x420000000000000000000000000000000000000F")
if err != nil {
panic(err)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package framework

import (
"context"
"testing"

"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
Expand All @@ -12,8 +13,6 @@ import (
"github.com/smartcontractkit/chainlink-common/pkg/values"
kcr "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/keystone/generated/capabilities_registry"

"testing"

"github.com/stretchr/testify/require"
)

Expand All @@ -27,7 +26,7 @@ type CapabilitiesRegistry struct {
}

func NewCapabilitiesRegistry(ctx context.Context, t *testing.T, backend *EthBlockchain) *CapabilitiesRegistry {
addr, _, contract, err := kcr.DeployCapabilitiesRegistry(backend.transactionOpts, backend)
addr, _, contract, err := kcr.DeployCapabilitiesRegistry(backend.transactionOpts, backend.Client())
require.NoError(t, err)
backend.Commit()

Expand All @@ -40,7 +39,7 @@ func NewCapabilitiesRegistry(ctx context.Context, t *testing.T, backend *EthBloc
require.NoError(t, err)
blockHash := backend.Commit()

logs, err := backend.FilterLogs(ctx, ethereum.FilterQuery{
logs, err := backend.Client().FilterLogs(ctx, ethereum.FilterQuery{
BlockHash: &blockHash,
FromBlock: nil,
ToBlock: nil,
Expand Down
6 changes: 3 additions & 3 deletions core/capabilities/integration_tests/framework/don.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func startNewNode(ctx context.Context,
}
})

n, err := ethBlockchain.NonceAt(ctx, ethBlockchain.transactionOpts.From, nil)
n, err := ethBlockchain.Client().NonceAt(ctx, ethBlockchain.transactionOpts.From, nil)
require.NoError(t, err)

tx := cltest.NewLegacyTransaction(
Expand All @@ -303,11 +303,11 @@ func startNewNode(ctx context.Context,
nil)
signedTx, err := ethBlockchain.transactionOpts.Signer(ethBlockchain.transactionOpts.From, tx)
require.NoError(t, err)
err = ethBlockchain.SendTransaction(ctx, signedTx)
err = ethBlockchain.Client().SendTransaction(ctx, signedTx)
require.NoError(t, err)
ethBlockchain.Commit()

return cltest.NewApplicationWithConfigV2AndKeyOnSimulatedBlockchain(t, config, ethBlockchain.SimulatedBackend, nodeInfo,
return cltest.NewApplicationWithConfigV2AndKeyOnSimulatedBlockchain(t, config, ethBlockchain.Backend, nodeInfo,
dispatcher, peerWrapper, newOracleFactoryFn, localCapabilities, keyV2, lggr)
}

Expand Down
Loading
Loading