Skip to content

Commit

Permalink
bump geth to 1.14.11 (#15041)
Browse files Browse the repository at this point in the history
* bump geth to 1.14.11

* remove AdjustTime hacks

* Try replace in integration tests

* Copy replace around

* Preserve fork behaviour

* generate

* tidy

* Work around geth, fix timestamp test

* Fix docstring

* Fix reader test

* Linter

* Re-enable CCIP deployment tests

* Mod + lint

* Remove cltest dependency which invokes pgtest init

---------

Co-authored-by: connorwstein <[email protected]>
  • Loading branch information
jmank88 and connorwstein authored Nov 5, 2024
1 parent 9b40b92 commit 916514e
Show file tree
Hide file tree
Showing 33 changed files with 227 additions and 127 deletions.
Original file line number Diff line number Diff line change
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,11 +135,13 @@ 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)
return len(reports) == numReports
return len(reports) == numReports-1
}, tests.WaitTimeout(t), 50*time.Millisecond)

assert.Len(t, reports, numReports-1)
Expand All @@ -142,12 +150,10 @@ func TestCCIPReader_CommitReportsGTETimestamp(t *testing.T) {
assert.Equal(t, onRampAddress.Bytes(), []byte(reports[0].Report.MerkleRoots[0].OnRampAddress))
assert.Equal(t, cciptypes.SeqNum(10), reports[0].Report.MerkleRoots[0].SeqNumsRange.Start())
assert.Equal(t, cciptypes.SeqNum(20), reports[0].Report.MerkleRoots[0].SeqNumsRange.End())
assert.Equal(t, "0x0100000000000000000000000000000000000000000000000000000000000000",
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
47 changes: 46 additions & 1 deletion core/chains/evm/logpoller/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,49 @@ var (
EmitterABI, _ = abi.JSON(strings.NewReader(log_emitter.LogEmitterABI))
)

type Backend struct {
*simulated.Backend
t testing.TB
expectPending bool
}

// SetExpectPending sets whether the backend should expect txes to be pending
// after a Fork. We do this to avoid breaking the existing evmtypes.Backend interface (by
// for example passing in a pending bool to Fork).
func (b *Backend) SetExpectPending(pending bool) {
b.expectPending = pending
}

// Fork as an override exists to maintain the same behaviour as the old
// simulated backend. Description of the changed behaviour
// here https://github.com/ethereum/go-ethereum/pull/30465#issuecomment-2362967508
// Basically the new simulated backend (post 1.14) will automatically
// put forked txes back in the mempool whereas the old one didn't
// so they would just remain on the fork.
func (b *Backend) Fork(parentHash common.Hash) error {
if err := b.Backend.Fork(parentHash); err != nil {
return err
}
// TODO: Fairly sure we need to upstream a tx pool sync like this:
// func (c *SimulatedBeacon) Rollback() {
// // Flush all transactions from the transaction pools
// + c.eth.TxPool().Sync()
// maxUint256 := new(big.Int).Sub(new(big.Int).Lsh(common.Big1, 256), common.Big1)
// Otherwise its possible the fork adds the txes to the pool
// _after_ we Rollback so the rollback is ineffective.
// In the meantime we can just wait for the txes to be pending as workaround.
require.Eventually(b.t, func() bool {
p, err := b.Backend.Client().PendingTransactionCount(context.Background())
if err != nil {
return false
}
b.t.Logf("waiting for forked txes to be pending, have %v, want %v\n", p, b.expectPending)
return p > 0 == b.expectPending
}, testutils.DefaultWaitTimeout, 500*time.Millisecond)
b.Rollback()
return nil
}

type TestHarness struct {
Lggr logger.Logger
// Chain2/ORM2 is just a dummy second chain, doesn't have a client.
Expand All @@ -56,6 +99,8 @@ func SetupTH(t testing.TB, opts logpoller.Opts) TestHarness {
o := logpoller.NewORM(chainID, db, lggr)
o2 := logpoller.NewORM(chainID2, db, lggr)
owner := testutils.MustNewSimTransactor(t)
// Needed for the new sim if you are using Rollback
owner.GasTipCap = big.NewInt(1000000000)

backend := simulated.NewBackend(types.GenesisAlloc{
owner.From: {
Expand Down Expand Up @@ -87,7 +132,7 @@ func SetupTH(t testing.TB, opts logpoller.Opts) TestHarness {
ORM2: o2,
LogPoller: lp,
Client: esc,
Backend: backend,
Backend: &Backend{t: t, Backend: backend, expectPending: true},
Owner: owner,
Emitter1: emitter1,
Emitter2: emitter2,
Expand Down
12 changes: 6 additions & 6 deletions core/chains/evm/logpoller/log_poller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func Test_BackupLogPoller(t *testing.T) {

th.finalizeThroughBlock(t, 32)

b, ok := primaryRPC.(*simulated.Backend)
b, ok := primaryRPC.(*Backend)
require.True(t, ok)
th.SetActiveClient(b, chaintype.ChainOptimismBedrock) // restore primary rpc

Expand Down Expand Up @@ -620,8 +620,8 @@ func TestLogPoller_BlockTimestamps(t *testing.T) {
// sequence: [ #1 ] ..(1ns + delay1).. [ #2 ] ..1ns.. [ #3 (LOG1) ] ..(1ns + delay2).. [ #4 ] ..1ns.. [ #5 (LOG2) ]
const delay1 = 589 * time.Second
const delay2 = 643 * time.Second
time1 := start + 1 + uint64(delay1)
time2 := time1 + 1 + uint64(delay2)
time1 := start + 1 + uint64(589)
time2 := time1 + 1 + uint64(643)

require.NoError(t, th.Backend.AdjustTime(delay1))

Expand Down Expand Up @@ -669,7 +669,7 @@ func TestLogPoller_BlockTimestamps(t *testing.T) {
// Logs should have correct timestamps
require.NotZero(t, len(lg1))
b, _ := th.Client.BlockByHash(ctx, lg1[0].BlockHash)
t.Log(len(lg1), lg1[0].BlockTimestamp)
t.Log(len(lg1), lg1[0].BlockTimestamp.String())
assert.Equal(t, int64(b.Time()), lg1[0].BlockTimestamp.UTC().Unix(), time1)
b2, _ := th.Client.BlockByHash(ctx, lg2[0].BlockHash)
assert.Equal(t, int64(b2.Time()), lg2[0].BlockTimestamp.UTC().Unix(), time2)
Expand Down Expand Up @@ -759,6 +759,7 @@ func TestLogPoller_SynchronizedWithGeth(t *testing.T) {
reorg, err1 := ec.BlockByNumber(testutils.Context(t), reorgedBlock)
require.NoError(t, err1)
require.NoError(t, backend.Fork(reorg.Hash()))

t.Logf("Reorging from (%v, %x) back to (%v, %x)\n", latest.NumberU64(), latest.Hash(), reorgedBlock.Uint64(), reorg.Hash())
// Actually need to change the block here to trigger the reorg.
_, err1 = emitter1.EmitLog1(owner, []*big.Int{big.NewInt(1)})
Expand Down Expand Up @@ -1029,7 +1030,7 @@ func TestLogPoller_PollAndSaveLogs(t *testing.T) {

b, err = th.Client.BlockByNumber(testutils.Context(t), nil)
require.NoError(t, err)
require.Equal(t, blockTimestamp+uint64(time.Hour)+1, b.Time())
require.Equal(t, blockTimestamp+uint64(time.Hour/time.Second)+1, b.Time())
})
}
}
Expand Down Expand Up @@ -1150,7 +1151,6 @@ func TestLogPoller_PollAndSaveLogsDeepReorg(t *testing.T) {
KeepFinalizedBlocksDepth: 1000,
}
th := SetupTH(t, lpOpts)

// Set up a log poller listening for log emitter logs.
err := th.LogPoller.RegisterFilter(testutils.Context(t), logpoller.Filter{
Name: "Test Emitter",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GETH_VERSION: 1.14.7
GETH_VERSION: 1.14.11
burn_from_mint_token_pool: ../../../contracts/solc/v0.8.24/BurnFromMintTokenPool/BurnFromMintTokenPool.abi ../../../contracts/solc/v0.8.24/BurnFromMintTokenPool/BurnFromMintTokenPool.bin 62c7636f6f5b56d1fdc3b8a190a07648ffb6fc5e8351f20fa8902bc107564a6b
burn_mint_token_pool: ../../../contracts/solc/v0.8.24/BurnMintTokenPool/BurnMintTokenPool.abi ../../../contracts/solc/v0.8.24/BurnMintTokenPool/BurnMintTokenPool.bin 7ab444f3e3df021338fc1ae33e1cc48d59537f78ee4c3e9ff23de10903736c4b
burn_mint_token_pool_and_proxy: ../../../contracts/solc/v0.8.24/BurnMintTokenPoolAndProxy/BurnMintTokenPoolAndProxy.abi ../../../contracts/solc/v0.8.24/BurnMintTokenPoolAndProxy/BurnMintTokenPoolAndProxy.bin 717c079d5d13300cf3c3ee871c6e5bf9af904411f204fb081a9f3b263cca1391
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GETH_VERSION: 1.14.7
GETH_VERSION: 1.14.11
functions: ../../../contracts/solc/v0.8.19/functions/v1_X/FunctionsRequest.abi ../../../contracts/solc/v0.8.19/functions/v1_X/FunctionsRequest.bin 3c972870b0afeb6d73a29ebb182f24956a2cebb127b21c4f867d1ecf19a762db
functions_allow_list: ../../../contracts/solc/v0.8.19/functions/v1_X/TermsOfServiceAllowList.abi ../../../contracts/solc/v0.8.19/functions/v1_X/TermsOfServiceAllowList.bin 6581a3e82c8a6b5532addb8278ff520d18f38c2be4ac07ed0ad9ccc2e6825e48
functions_billing_registry_events_mock: ../../../contracts/solc/v0.8.6/functions/v0_0_0/FunctionsBillingRegistryEventsMock.abi ../../../contracts/solc/v0.8.6/functions/v0_0_0/FunctionsBillingRegistryEventsMock.bin 50deeb883bd9c3729702be335c0388f9d8553bab4be5e26ecacac496a89e2b77
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GETH_VERSION: 1.14.7
GETH_VERSION: 1.14.11
aggregator_v2v3_interface: ../../contracts/solc/v0.8.6/AggregatorV2V3Interface/AggregatorV2V3Interface.abi ../../contracts/solc/v0.8.6/AggregatorV2V3Interface/AggregatorV2V3Interface.bin 95e8814b408bb05bf21742ef580d98698b7db6a9bac6a35c3de12b23aec4ee28
aggregator_v3_interface: ../../contracts/solc/v0.8.6/AggregatorV2V3Interface/AggregatorV3Interface.abi ../../contracts/solc/v0.8.6/AggregatorV2V3Interface/AggregatorV3Interface.bin 351b55d3b0f04af67db6dfb5c92f1c64479400ca1fec77afc20bc0ce65cb49ab
arbitrum_module: ../../contracts/solc/v0.8.19/ArbitrumModule/ArbitrumModule.abi ../../contracts/solc/v0.8.19/ArbitrumModule/ArbitrumModule.bin 12a7bad1f887d832d101a73ae279a91a90c93fd72befea9983e85eff493f62f4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GETH_VERSION: 1.14.7
GETH_VERSION: 1.14.11
capabilities_registry: ../../../contracts/solc/v0.8.24/CapabilitiesRegistry/CapabilitiesRegistry.abi ../../../contracts/solc/v0.8.24/CapabilitiesRegistry/CapabilitiesRegistry.bin 07e0115065e833b29352017fe808dd149952b0b7fe73d0af87020966d2ece57c
feeds_consumer: ../../../contracts/solc/v0.8.24/KeystoneFeedsConsumer/KeystoneFeedsConsumer.abi ../../../contracts/solc/v0.8.24/KeystoneFeedsConsumer/KeystoneFeedsConsumer.bin 6ac5b12eff3b022a35c3c40d5ed0285bf9bfec0e3669a4b12307332a216048ca
forwarder: ../../../contracts/solc/v0.8.24/KeystoneForwarder/KeystoneForwarder.abi ../../../contracts/solc/v0.8.24/KeystoneForwarder/KeystoneForwarder.bin cb728d316f6392ae0d07e6ad94ec93897a4706f6ced7120f79f7e61282ef8152
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GETH_VERSION: 1.14.7
GETH_VERSION: 1.14.11
abstract_arbitrum_token_gateway: ../../../contracts/solc/v0.8.24/IAbstractArbitrumTokenGateway/IAbstractArbitrumTokenGateway.abi ../../../contracts/solc/v0.8.24/IAbstractArbitrumTokenGateway/IAbstractArbitrumTokenGateway.bin 779e05d8fb797d4fcfa565174c071ad9f0161d103d6a322f6d0e1e42be568fa0
arb_node_interface: ../../../contracts/solc/v0.8.24/INodeInterface/INodeInterface.abi ../../../contracts/solc/v0.8.24/INodeInterface/INodeInterface.bin c72f9e9d1e9b9c371c42817590a490a327e743775f423d9417982914d6136ff7
arbitrum_gateway_router: ../../../contracts/solc/v0.8.24/IArbitrumGatewayRouter/IArbitrumGatewayRouter.abi ../../../contracts/solc/v0.8.24/IArbitrumGatewayRouter/IArbitrumGatewayRouter.bin d02c8ed0b4bfe50630e0fce452f9aef23d394bd28110314356954185a6544cb8
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GETH_VERSION: 1.14.7
GETH_VERSION: 1.14.11
channel_config_store: ../../../contracts/solc/v0.8.19/ChannelConfigStore/ChannelConfigStore.abi ../../../contracts/solc/v0.8.19/ChannelConfigStore/ChannelConfigStore.bin 3fafe83ea21d50488f5533962f62683988ffa6fd1476dccbbb9040be2369cb37
channel_config_verifier_proxy: ../../../contracts/solc/v0.8.19/ChannelVerifierProxy/ChannelVerifierProxy.abi ../../../contracts/solc/v0.8.19/ChannelVerifierProxy/ChannelVerifierProxy.bin 655658e5f61dfadfe3268de04f948b7e690ad03ca45676e645d6cd6018154661
channel_verifier: ../../../contracts/solc/v0.8.19/ChannelVerifier/ChannelVerifier.abi ../../../contracts/solc/v0.8.19/ChannelVerifier/ChannelVerifier.bin e6020553bd8e3e6b250fcaffe7efd22aea955c8c1a0eb05d282fdeb0ab6550b7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GETH_VERSION: 1.14.7
GETH_VERSION: 1.14.11
authorized_forwarder: ../../../contracts/solc/v0.8.19/AuthorizedForwarder/AuthorizedForwarder.abi ../../../contracts/solc/v0.8.19/AuthorizedForwarder/AuthorizedForwarder.bin 8ea76c883d460f8353a45a493f2aebeb5a2d9a7b4619d1bc4fff5fb590bb3e10
authorized_receiver: ../../../contracts/solc/v0.8.19/AuthorizedReceiver/AuthorizedReceiver.abi ../../../contracts/solc/v0.8.19/AuthorizedReceiver/AuthorizedReceiver.bin 18e8969ba3234b027e1b16c11a783aca58d0ea5c2361010ec597f134b7bf1c4f
link_token_receiver: ../../../contracts/solc/v0.8.19/LinkTokenReceiver/LinkTokenReceiver.abi ../../../contracts/solc/v0.8.19/LinkTokenReceiver/LinkTokenReceiver.bin 839552e2bea179bdf2591805422fb33769c1646d5a014a00fc2c0cd9c03ef229
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GETH_VERSION: 1.14.7
GETH_VERSION: 1.14.11
burn_mint_erc677: ../../../contracts/solc/v0.8.19/BurnMintERC677/BurnMintERC677.abi ../../../contracts/solc/v0.8.19/BurnMintERC677/BurnMintERC677.bin 405c9016171e614b17e10588653ef8d33dcea21dd569c3fddc596a46fcff68a3
erc20: ../../../contracts/solc/v0.8.19/ERC20/ERC20.abi ../../../contracts/solc/v0.8.19/ERC20/ERC20.bin 5b1a93d9b24f250e49a730c96335a8113c3f7010365cba578f313b483001d4fc
link_token: ../../../contracts/solc/v0.8.19/LinkToken/LinkToken.abi ../../../contracts/solc/v0.8.19/LinkToken/LinkToken.bin c0ef9b507103aae541ebc31d87d051c2764ba9d843076b30ec505d37cdfffaba
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GETH_VERSION: 1.14.7
GETH_VERSION: 1.14.11
entry_point: ../../../contracts/solc/v0.8.19/EntryPoint/EntryPoint.abi ../../../contracts/solc/v0.8.19/EntryPoint/EntryPoint.bin e43da0e61256471b317cab1c87f2425cecba9b81ac21633334f889bab2f0777d
greeter: ../../../contracts/solc/v0.8.15/Greeter.abi ../../../contracts/solc/v0.8.15/Greeter.bin 653dcba5c33a46292073939ce1e639372cf521c0ec2814d4c9f20c72f796f18c
greeter_wrapper: ../../../contracts/solc/v0.8.19/Greeter/Greeter.abi ../../../contracts/solc/v0.8.19/Greeter/Greeter.bin 7f6def58e337a53553a46cb7992cf2d75ec951014d79376fcb869a2b16b53f6d
Expand Down
7 changes: 3 additions & 4 deletions core/scripts/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ replace github.com/smartcontractkit/chainlink/deployment => ../../deployment
require (
github.com/docker/docker v27.3.1+incompatible
github.com/docker/go-connections v0.5.0
github.com/ethereum/go-ethereum v1.14.7
github.com/ethereum/go-ethereum v1.14.11
github.com/gkampitakis/go-snaps v0.5.4
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.6.0
Expand Down Expand Up @@ -40,8 +40,6 @@ require (
k8s.io/client-go v0.31.1
)

require github.com/fjl/memsize v0.0.2 // indirect

require (
contrib.go.opencensus.io/exporter/stackdriver v0.13.5 // indirect
cosmossdk.io/api v0.3.1 // indirect
Expand Down Expand Up @@ -75,7 +73,7 @@ require (
github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect
github.com/bits-and-blooms/bitset v1.13.0 // indirect
github.com/blendle/zapdriver v1.3.1 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.4 // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/bytecodealliance/wasmtime-go/v23 v23.0.0 // indirect
github.com/bytedance/sonic v1.11.6 // indirect
Expand Down Expand Up @@ -406,6 +404,7 @@ require (
)

replace (
github.com/btcsuite/btcd/btcec/v2 => github.com/btcsuite/btcd/btcec/v2 v2.3.2
// replicating the replace directive on cosmos SDK
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1

Expand Down
8 changes: 2 additions & 6 deletions core/scripts/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ github.com/esote/minmaxheap v1.0.0 h1:rgA7StnXXpZG6qlM0S7pUmEv1KpWe32rYT4x8J8nta
github.com/esote/minmaxheap v1.0.0/go.mod h1:Ln8+i7fS1k3PLgZI2JAo0iA1as95QnIYiGCrqSJ5FZk=
github.com/ethereum/c-kzg-4844 v1.0.0 h1:0X1LBXxaEtYD9xsyj9B9ctQEZIpnvVDeoBx8aHEwTNA=
github.com/ethereum/c-kzg-4844 v1.0.0/go.mod h1:VewdlzQmpT5QSrVhbBuGoCdFJkpaJlO1aQputP83wc0=
github.com/ethereum/go-ethereum v1.14.7 h1:EHpv3dE8evQmpVEQ/Ne2ahB06n2mQptdwqaMNhAT29g=
github.com/ethereum/go-ethereum v1.14.7/go.mod h1:Mq0biU2jbdmKSZoqOj29017ygFrMnB5/Rifwp980W4o=
github.com/ethereum/go-ethereum v1.14.11 h1:8nFDCUUE67rPc6AKxFj7JKaOa2W/W1Rse3oS6LvvxEY=
github.com/ethereum/go-ethereum v1.14.11/go.mod h1:+l/fr42Mma+xBnhefL/+z11/hcmJ2egl+ScIVPjhc7E=
github.com/ethereum/go-verkle v0.1.1-0.20240829091221-dffa7562dbe9 h1:8NfxH2iXvJ60YRB8ChToFTUzl8awsc3cJ8CbLjGIl/A=
github.com/ethereum/go-verkle v0.1.1-0.20240829091221-dffa7562dbe9/go.mod h1:M3b90YRnzqKyyzBEWJGqj8Qff4IDeXnzFw0P9bFw3uk=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
Expand All @@ -364,8 +364,6 @@ github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4=
github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI=
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA=
github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
Expand Down Expand Up @@ -1112,8 +1110,6 @@ github.com/smartcontractkit/chainlink-solana v1.1.1-0.20241024132041-a3eb2e31b4c
github.com/smartcontractkit/chainlink-solana v1.1.1-0.20241024132041-a3eb2e31b4c4/go.mod h1:iZugccCLpPWtcGiR/8gurre2j3RtyKnqd1FcVR0NzQw=
github.com/smartcontractkit/chainlink-starknet/relayer v0.1.1-0.20241017135645-176a23722fd8 h1:B4DFdk6MGcQnoCjjMBCx7Z+GWQpxRWJ4O8W/dVJyWGA=
github.com/smartcontractkit/chainlink-starknet/relayer v0.1.1-0.20241017135645-176a23722fd8/go.mod h1:WkBqgBo+g34Gm5vWkDDl8Fh3Mzd7bF5hXp7rryg0t5o=
github.com/smartcontractkit/chainlink-testing-framework/lib v1.50.13 h1:T0kbw07Vb6xUyA9MIJZfErMgWseWi1zf7cYvRpoq7ug=
github.com/smartcontractkit/chainlink-testing-framework/lib v1.50.13/go.mod h1:1CKUOzoK+Ga19WuhRH9pxZ+qUUnrlIx108VEA6qSzeQ=
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 h1:12ijqMM9tvYVEm+nR826WsrNi6zCKpwBhuApq127wHs=
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7/go.mod h1:FX7/bVdoep147QQhsOPkYsPEXhGZjeYx6lBSaSXtZOA=
github.com/smartcontractkit/libocr v0.0.0-20241007185508-adbe57025f12 h1:NzZGjaqez21I3DU7objl3xExTH4fxYvzTqar8DC6360=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (

"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
types3 "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient/simulated"
"github.com/google/uuid"
"github.com/hashicorp/consul/sdk/freeport"
Expand Down Expand Up @@ -51,7 +52,6 @@ import (
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/evm_2_evm_offramp"
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/evm_2_evm_onramp"
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/price_registry_1_2_0"
"github.com/smartcontractkit/chainlink/v2/core/internal/cltest"
"github.com/smartcontractkit/chainlink/v2/core/internal/testutils"
"github.com/smartcontractkit/chainlink/v2/core/logger"
"github.com/smartcontractkit/chainlink/v2/core/logger/audit"
Expand Down Expand Up @@ -515,7 +515,7 @@ func setupNodeCCIP(
n, err := destChain.Client().PendingNonceAt(context.Background(), owner.From)
require.NoError(t, err)

tx := cltest.NewLegacyTransaction(n, transmitter, big.NewInt(1000000000000000000), 21000, big.NewInt(1000000000), nil)
tx := types3.NewTransaction(n, transmitter, big.NewInt(1000000000000000000), 21000, big.NewInt(1000000000), nil)
signedTx, err := owner.Signer(owner.From, tx)
require.NoError(t, err)
err = destChain.Client().SendTransaction(context.Background(), signedTx)
Expand Down
Loading

0 comments on commit 916514e

Please sign in to comment.