Skip to content

Commit 4090f54

Browse files
committed
1.13.5
skip destruct
1 parent feda1ee commit 4090f54

File tree

17 files changed

+125
-179
lines changed

17 files changed

+125
-179
lines changed

app/ante/eth.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import (
3333

3434
"github.com/ethereum/go-ethereum/common"
3535
"github.com/ethereum/go-ethereum/params"
36-
"github.com/holiman/uint256"
3736
)
3837

3938
type AccountGetter func(sdk.AccAddress) sdk.AccountI
@@ -245,11 +244,10 @@ func CheckEthCanTransfer(
245244
if value == nil || value.Sign() == -1 {
246245
return fmt.Errorf("value (%s) must be positive", value)
247246
}
248-
v, _ := uint256.FromBig(value)
249247
from := common.BytesToAddress(msgEthTx.From)
250248
// check that caller has enough balance to cover asset transfer for **topmost** call
251249
// NOTE: here the gas consumed is from the context with the infinite gas meter
252-
if value.Sign() > 0 && !canTransfer(ctx, evmKeeper, evmParams.EvmDenom, from, v) {
250+
if value.Sign() > 0 && !canTransfer(ctx, evmKeeper, evmParams.EvmDenom, from, value) {
253251
return errorsmod.Wrapf(
254252
errortypes.ErrInsufficientFunds,
255253
"failed to transfer %s from address %s using the EVM block context transfer function",
@@ -263,9 +261,9 @@ func CheckEthCanTransfer(
263261
}
264262

265263
// canTransfer adapted the core.CanTransfer from go-ethereum
266-
func canTransfer(ctx sdk.Context, evmKeeper EVMKeeper, denom string, from common.Address, amount *uint256.Int) bool {
264+
func canTransfer(ctx sdk.Context, evmKeeper EVMKeeper, denom string, from common.Address, amount *big.Int) bool {
267265
balance := evmKeeper.GetBalance(ctx, sdk.AccAddress(from.Bytes()), denom)
268-
return balance.Cmp(amount.ToBig()) >= 0
266+
return balance.Cmp(amount) >= 0
269267
}
270268

271269
// CheckAndSetEthSenderNonce handles incrementing the sequence of the signer (i.e sender). If the transaction is a

app/ante/eth_test.go

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
ethermint "github.com/evmos/ethermint/types"
1818
"github.com/evmos/ethermint/x/evm/statedb"
1919
evmtypes "github.com/evmos/ethermint/x/evm/types"
20-
"github.com/holiman/uint256"
2120
)
2221

2322
func (suite *AnteTestSuite) TestNewEthAccountVerificationDecorator() {
@@ -68,7 +67,7 @@ func (suite *AnteTestSuite) TestNewEthAccountVerificationDecorator() {
6867
"success new account",
6968
tx,
7069
func() {
71-
vmdb.AddBalance(addr, uint256.NewInt(1000000))
70+
vmdb.AddBalance(addr, big.NewInt(1000000))
7271
},
7372
true,
7473
true,
@@ -80,7 +79,7 @@ func (suite *AnteTestSuite) TestNewEthAccountVerificationDecorator() {
8079
acc := suite.app.AccountKeeper.NewAccountWithAddress(suite.ctx, addr.Bytes())
8180
suite.app.AccountKeeper.SetAccount(suite.ctx, acc)
8281

83-
vmdb.AddBalance(addr, uint256.NewInt(1000000))
82+
vmdb.AddBalance(addr, big.NewInt(1000000))
8483
},
8584
true,
8685
true,
@@ -264,7 +263,7 @@ func (suite *AnteTestSuite) TestEthGasConsumeDecorator() {
264263
tx2,
265264
0,
266265
func() {
267-
vmdb.AddBalance(addr, uint256.NewInt(1000000))
266+
vmdb.AddBalance(addr, big.NewInt(1000000))
268267
},
269268
false, true,
270269
0,
@@ -275,7 +274,7 @@ func (suite *AnteTestSuite) TestEthGasConsumeDecorator() {
275274
tx2,
276275
0,
277276
func() {
278-
vmdb.AddBalance(addr, uint256.NewInt(1000000))
277+
vmdb.AddBalance(addr, big.NewInt(1000000))
279278
suite.ctx = suite.ctx.WithBlockGasMeter(storetypes.NewGasMeter(1))
280279
},
281280
false, true,
@@ -291,8 +290,7 @@ func (suite *AnteTestSuite) TestEthGasConsumeDecorator() {
291290
func() {
292291
limit := new(big.Int).SetUint64(math.MaxUint64)
293292
balance := new(big.Int).Mul(limit, gasPrice)
294-
b, _ := uint256.FromBig(balance)
295-
vmdb.AddBalance(addr, b)
293+
vmdb.AddBalance(addr, balance)
296294
},
297295
false, false,
298296
0,
@@ -303,7 +301,7 @@ func (suite *AnteTestSuite) TestEthGasConsumeDecorator() {
303301
tx2,
304302
tx2GasLimit, // it's capped
305303
func() {
306-
vmdb.AddBalance(addr, uint256.NewInt(1001000000000000))
304+
vmdb.AddBalance(addr, big.NewInt(1001000000000000))
307305
suite.ctx = suite.ctx.WithBlockGasMeter(storetypes.NewGasMeter(10000000000000000000))
308306
},
309307
true, false,
@@ -315,7 +313,7 @@ func (suite *AnteTestSuite) TestEthGasConsumeDecorator() {
315313
dynamicFeeTx,
316314
tx2GasLimit, // it's capped
317315
func() {
318-
vmdb.AddBalance(addr, uint256.NewInt(1001000000000000))
316+
vmdb.AddBalance(addr, big.NewInt(1001000000000000))
319317
suite.ctx = suite.ctx.WithBlockGasMeter(storetypes.NewGasMeter(10000000000000000000))
320318
},
321319
true, false,
@@ -327,7 +325,7 @@ func (suite *AnteTestSuite) TestEthGasConsumeDecorator() {
327325
dynamicFeeTx,
328326
tx2GasLimit, // it's capped
329327
func() {
330-
vmdb.AddBalance(addr, uint256.NewInt(1001000000000000))
328+
vmdb.AddBalance(addr, big.NewInt(1001000000000000))
331329
suite.ctx = suite.ctx.WithIsReCheckTx(true)
332330
},
333331
true, false,
@@ -450,7 +448,7 @@ func (suite *AnteTestSuite) TestCanTransferDecorator() {
450448
acc := suite.app.AccountKeeper.NewAccountWithAddress(suite.ctx, addr.Bytes())
451449
suite.app.AccountKeeper.SetAccount(suite.ctx, acc)
452450

453-
vmdb.AddBalance(addr, uint256.NewInt(1000000))
451+
vmdb.AddBalance(addr, big.NewInt(1000000))
454452
},
455453
true,
456454
},

go.mod

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ require (
5050
github.com/tidwall/gjson v1.14.4
5151
github.com/tidwall/sjson v1.2.5
5252
github.com/tyler-smith/go-bip39 v1.1.0
53-
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8
5453
golang.org/x/net v0.30.0
5554
golang.org/x/sync v0.8.0
5655
golang.org/x/text v0.19.0
@@ -103,7 +102,6 @@ require (
103102
github.com/cosmos/ics23/go v0.11.0 // indirect
104103
github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect
105104
github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect
106-
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233 // indirect
107105
github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect
108106
github.com/creachadair/atomicfile v0.3.1 // indirect
109107
github.com/creachadair/tomledit v0.0.24 // indirect
@@ -123,7 +121,6 @@ require (
123121
github.com/felixge/httpsnoop v1.0.4 // indirect
124122
github.com/fsnotify/fsnotify v1.7.0 // indirect
125123
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff // indirect
126-
github.com/gballet/go-verkle v0.1.1-0.20231031103413-a67434b50f46 // indirect
127124
github.com/getsentry/sentry-go v0.28.1 // indirect
128125
github.com/go-kit/kit v0.13.0 // indirect
129126
github.com/go-kit/log v0.2.1 // indirect
@@ -132,6 +129,7 @@ require (
132129
github.com/go-logr/stdr v1.2.2 // indirect
133130
github.com/go-ole/go-ole v1.3.0 // indirect
134131
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
132+
github.com/go-stack/stack v1.8.1 // indirect
135133
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
136134
github.com/gofrs/flock v0.8.1 // indirect
137135
github.com/gogo/googleapis v1.4.1 // indirect
@@ -230,6 +228,7 @@ require (
230228
go.opentelemetry.io/otel/trace v1.24.0 // indirect
231229
go.uber.org/multierr v1.11.0 // indirect
232230
golang.org/x/crypto v0.28.0 // indirect
231+
golang.org/x/exp v0.0.0-20240613232115-7f521ea00fb8 // indirect
233232
golang.org/x/oauth2 v0.23.0 // indirect
234233
golang.org/x/sys v0.26.0 // indirect
235234
golang.org/x/term v0.25.0 // indirect
@@ -264,8 +263,8 @@ replace (
264263
github.com/tidwall/btree => github.com/crypto-org-chain/btree v0.0.0-20240406140148-2687063b042c
265264
)
266265

267-
// v1.14.0
266+
// v1.13.5
268267
replace (
269-
github.com/cockroachdb/pebble => github.com/cockroachdb/pebble v1.1.0
270-
github.com/ethereum/go-ethereum => github.com/mmsqe/go-ethereum v1.10.24-0.20240925073129-3e9742fa9d02
268+
github.com/cockroachdb/pebble => github.com/cockroachdb/pebble v0.0.0-20230928194634-aa077af62593
269+
github.com/ethereum/go-ethereum => github.com/mmsqe/go-ethereum v1.10.24-0.20240925072820-0fa029293c67
271270
)

go.sum

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ github.com/cockroachdb/errors v1.11.3 h1:5bA+k2Y6r+oz/6Z/RFlNeVCesGARKuC6YymtcDr
353353
github.com/cockroachdb/errors v1.11.3/go.mod h1:m4UIW4CDjx+R5cybPsNrRbreomiFqt8o1h1wUVazSd8=
354354
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE=
355355
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs=
356-
github.com/cockroachdb/pebble v1.1.0 h1:pcFh8CdCIt2kmEpK0OIatq67Ln9uGDYY3d5XnE0LJG4=
357-
github.com/cockroachdb/pebble v1.1.0/go.mod h1:sEHm5NOXxyiAoKWhoFxT8xMgd/f3RA6qUqQ1BXKrh2E=
356+
github.com/cockroachdb/pebble v0.0.0-20230928194634-aa077af62593 h1:aPEJyR4rPBvDmeyi+l/FS/VtA00IWvjeFvjen1m1l1A=
357+
github.com/cockroachdb/pebble v0.0.0-20230928194634-aa077af62593/go.mod h1:6hk1eMY/u5t+Cf18q5lFMUA1Rc+Sm5I6Ra1QuPyxXCo=
358358
github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30=
359359
github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
360360
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo=
@@ -406,8 +406,6 @@ github.com/cosmos/rosetta-sdk-go v0.10.0/go.mod h1:SImAZkb96YbwvoRkzSMQB6noNJXFg
406406
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
407407
github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4=
408408
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
409-
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233 h1:d28BXYi+wUpz1KBmiF9bWrjEMacUEREV6MBi2ODnrfQ=
410-
github.com/crate-crypto/go-ipa v0.0.0-20231025140028-3c0104f4b233/go.mod h1:geZJZH3SzKCqnz5VT0q/DyIG/tvu/dZk+VIfXicupJs=
411409
github.com/crate-crypto/go-kzg-4844 v0.7.0 h1:C0vgZRk4q4EZ/JgPfzuSoxdCq3C3mOZMBShovmncxvA=
412410
github.com/crate-crypto/go-kzg-4844 v0.7.0/go.mod h1:1kMhvPgI0Ky3yIa+9lFySEBUBXkYxeOi8ZF1sYioxhc=
413411
github.com/creachadair/atomicfile v0.3.1 h1:yQORkHjSYySh/tv5th1dkKcn02NEW5JleB84sjt+W4Q=
@@ -496,8 +494,8 @@ github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4=
496494
github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI=
497495
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
498496
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
499-
github.com/fjl/memsize v0.0.2 h1:27txuSD9or+NZlnOWdKUxeBzTAUkWCVh+4Gf2dWFOzA=
500-
github.com/fjl/memsize v0.0.2/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
497+
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5 h1:FtmdgXiUlNeRsoNMFlKLDt+S+6hbjVMEW6RGQ7aUf7c=
498+
github.com/fjl/memsize v0.0.0-20190710130421-bcb5799ab5e5/go.mod h1:VvhXpOYNQvB+uIk2RvXzuaQtkQJzzIx6lSBe1xv7hi0=
501499
github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=
502500
github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=
503501
github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4=
@@ -510,8 +508,6 @@ github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nos
510508
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
511509
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff h1:tY80oXqGNY4FhTFhk+o9oFHGINQ/+vhlm8HFzi6znCI=
512510
github.com/gballet/go-libpcsclite v0.0.0-20190607065134-2772fd86a8ff/go.mod h1:x7DCsMOv1taUwEWCzT4cmDeAkigA5/QCwUodaVOe8Ww=
513-
github.com/gballet/go-verkle v0.1.1-0.20231031103413-a67434b50f46 h1:BAIP2GihuqhwdILrV+7GJel5lyPV3u1+PgzrWLc0TkE=
514-
github.com/gballet/go-verkle v0.1.1-0.20231031103413-a67434b50f46/go.mod h1:QNpY22eby74jVhqH4WhDLDwxc/vqsern6pW+u2kbkpc=
515511
github.com/getsentry/sentry-go v0.28.1 h1:zzaSm/vHmGllRM6Tpx1492r0YDzauArdBfkJRtY6P5k=
516512
github.com/getsentry/sentry-go v0.28.1/go.mod h1:1fQZ+7l7eeJ3wYi82q5Hg8GqAPgefRq+FP/QhafYVgg=
517513
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
@@ -551,6 +547,8 @@ github.com/go-sourcemap/sourcemap v2.1.3+incompatible h1:W1iEw64niKVGogNgBN3ePyL
551547
github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg=
552548
github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
553549
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
550+
github.com/go-stack/stack v1.8.1 h1:ntEHSVwIt7PNXNpgPmVfMrNhLtgjlmnZha2kOpuRiDw=
551+
github.com/go-stack/stack v1.8.1/go.mod h1:dcoOX6HbPZSZptuspn9bctJ+N/CnF5gGygcUP3XYfe4=
554552
github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo=
555553
github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
556554
github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM=
@@ -767,8 +765,8 @@ github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE
767765
github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ=
768766
github.com/hdevalence/ed25519consensus v0.2.0 h1:37ICyZqdyj0lAZ8P4D1d1id3HqbbG1N3iBb1Tb4rdcU=
769767
github.com/hdevalence/ed25519consensus v0.2.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo=
770-
github.com/holiman/billy v0.0.0-20240216141850-2abb0c79d3c4 h1:X4egAf/gcS1zATw6wn4Ej8vjuVGxeHdan+bRb2ebyv4=
771-
github.com/holiman/billy v0.0.0-20240216141850-2abb0c79d3c4/go.mod h1:5GuXa7vkL8u9FkFuWdVvfR5ix8hRB7DbOAaYULamFpc=
768+
github.com/holiman/billy v0.0.0-20230718173358-1c7e68d277a7 h1:3JQNjnMRil1yD0IfZKHF9GxxWKDJGj8I0IqOUol//sw=
769+
github.com/holiman/billy v0.0.0-20230718173358-1c7e68d277a7/go.mod h1:5GuXa7vkL8u9FkFuWdVvfR5ix8hRB7DbOAaYULamFpc=
772770
github.com/holiman/bloomfilter/v2 v2.0.3 h1:73e0e/V0tCydx14a0SCYS/EWCxgwLZ18CZcZKVu0fao=
773771
github.com/holiman/bloomfilter/v2 v2.0.3/go.mod h1:zpoh+gs7qcpqrHr3dB55AMiJwo0iURXE7ZOP9L9hSkA=
774772
github.com/holiman/uint256 v1.2.4 h1:jUc4Nk8fm9jZabQuqr2JzednajVmBpC+oiTiXZJEApU=
@@ -896,8 +894,8 @@ github.com/mitchellh/pointerstructure v1.2.0/go.mod h1:BRAsLI5zgXmw97Lf6s25bs8oh
896894
github.com/mmcloughlin/addchain v0.4.0 h1:SobOdjm2xLj1KkXN5/n0xTIWyZA2+s99UCY1iPfkHRY=
897895
github.com/mmcloughlin/addchain v0.4.0/go.mod h1:A86O+tHqZLMNO4w6ZZ4FlVQEadcoqkyU72HC5wJ4RlU=
898896
github.com/mmcloughlin/profile v0.1.1/go.mod h1:IhHD7q1ooxgwTgjxQYkACGA77oFTDdFVejUS1/tS/qU=
899-
github.com/mmsqe/go-ethereum v1.10.24-0.20240925073129-3e9742fa9d02 h1:grUd5ZVUXK+3r246b7htoNLB86WEe4W87lBFjLpjQws=
900-
github.com/mmsqe/go-ethereum v1.10.24-0.20240925073129-3e9742fa9d02/go.mod h1:8HwwZTzHt+OJB7GBjPAY82HAH4uorJFs6H61Sk7gZds=
897+
github.com/mmsqe/go-ethereum v1.10.24-0.20240925072820-0fa029293c67 h1:Ovdn3yfxOViVKd9y5sIOt4/1J/XUb0xQvEXzTniL3pQ=
898+
github.com/mmsqe/go-ethereum v1.10.24-0.20240925072820-0fa029293c67/go.mod h1:yD7QFut77qDp4rde9gfhcFiRQbKs4RPQOD3dFqBV1us=
901899
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
902900
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
903901
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=

gomod2nix.toml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ schema = 3
137137
version = "v0.0.0-20230118201751-21c54148d20b"
138138
hash = "sha256-7dQH6j1o99fuxHKkw0RhNC5wJKkvRLMDJpUiVnDx6h8="
139139
[mod."github.com/cockroachdb/pebble"]
140-
version = "v1.1.0"
141-
hash = "sha256-igtoXdKzENNqaL3mLSUzZvqaSAmkNlrWN/ZnVTwA7Bk="
140+
version = "v0.0.0-20230928194634-aa077af62593"
141+
hash = "sha256-DDT/kTeJm3Wo6OHU6qx0HeixzWE+j2YTyiXpNEgVI28="
142142
replaced = "github.com/cockroachdb/pebble"
143143
[mod."github.com/cockroachdb/redact"]
144144
version = "v1.1.5"
@@ -205,9 +205,6 @@ schema = 3
205205
[mod."github.com/cosmos/rosetta-sdk-go"]
206206
version = "v0.10.0"
207207
hash = "sha256-WmLq9E9mYV+ms6Tdb43lCoAy6cowkDnK4bvX/ApDzLY="
208-
[mod."github.com/crate-crypto/go-ipa"]
209-
version = "v0.0.0-20231025140028-3c0104f4b233"
210-
hash = "sha256-FUTI6x4sWr5QuINpwXtEG202elrhwqbxsesDc7Mp/DU="
211208
[mod."github.com/crate-crypto/go-kzg-4844"]
212209
version = "v0.7.0"
213210
hash = "sha256-vQ2CLr+JFd6zotMhOFLr4Xv1xTJTHWubmO7d2bf+Lis="
@@ -260,8 +257,8 @@ schema = 3
260257
version = "v0.4.0"
261258
hash = "sha256-Ol5bznli6Dh5uXi8GUGsjZo8DzCdF0hqsUMwDNUpxP0="
262259
[mod."github.com/ethereum/go-ethereum"]
263-
version = "v1.10.24-0.20240925073129-3e9742fa9d02"
264-
hash = "sha256-LCXhGhk9JlMGE/y0B7iXggRXIfD+wiH3K1qqpAjfmXk="
260+
version = "v1.10.24-0.20240925072820-0fa029293c67"
261+
hash = "sha256-zeTU76BDs8s6aPMC+Z3mr2B3V3IYsaCHnXZobNJIFP4="
265262
replaced = "github.com/mmsqe/go-ethereum"
266263
[mod."github.com/fatih/color"]
267264
version = "v1.17.0"
@@ -275,9 +272,6 @@ schema = 3
275272
[mod."github.com/gballet/go-libpcsclite"]
276273
version = "v0.0.0-20190607065134-2772fd86a8ff"
277274
hash = "sha256-Nr5ocU9s1F2Lhx/Zq6/nIo+KkKEqMjDYOEs3yWRC48g="
278-
[mod."github.com/gballet/go-verkle"]
279-
version = "v0.1.1-0.20231031103413-a67434b50f46"
280-
hash = "sha256-ccLo8Dx6QMbsn8qBoRdz6Nj464O3PgcgsMF889gPjC8="
281275
[mod."github.com/getsentry/sentry-go"]
282276
version = "v0.28.1"
283277
hash = "sha256-IR3xr8/XLKEnkpXUD470sjQVhI59Fsq74+Q4i/jcMh4="
@@ -302,6 +296,9 @@ schema = 3
302296
[mod."github.com/go-sourcemap/sourcemap"]
303297
version = "v2.1.3+incompatible"
304298
hash = "sha256-eXhXPPLnAy/rmt/zDgeqni2G3o58UtnHjR8vHLXvISI="
299+
[mod."github.com/go-stack/stack"]
300+
version = "v1.8.1"
301+
hash = "sha256-ixcJ2RrK1ZH3YWGQZF9QFBo02NOuLeSp9wJ7gniipgY="
305302
[mod."github.com/godbus/dbus"]
306303
version = "v0.0.0-20190726142602-4481cbc300e2"
307304
hash = "sha256-R7Gb9+Zjy80FbQSDGketoVEqfdOQKuOVTfWRjQ5kxZY="

nix/go-ethereum.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ let
1010
in
1111
buildGoModule rec {
1212
pname = "go-ethereum";
13-
version = "1.14.8";
13+
version = "1.13.5";
1414

1515
src = fetchFromGitHub {
1616
owner = "ethereum";
1717
repo = pname;
1818
rev = "v${version}";
19-
sha256 = "sha256-y831v6ar1RdDvGQMZf2lZKgq2IQzAAQrNwDCL0xbj24=";
19+
sha256 = "sha256-UbRsY9fSUYAwPcLfGGDHeqvSsLKUKR+2a93jH5xA9uQ=";
2020
};
2121

2222
proxyVendor = true;
23-
vendorHash = "sha256-CLGf64Fftu4u8Vaj66Q4xuRKBEMNZmpltUyaUMVyVJk=";
23+
vendorHash = "sha256-vGcupRedBtUEVh6htXml032fEp45ir/1ronh6KfqvTo=";
2424

2525
doCheck = false;
2626

rpc/types/utils.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,11 @@ func FormatBlock(
175175
"timestamp": hexutil.Uint64(blockTime),
176176
"transactionsRoot": transactionsRoot,
177177
"receiptsRoot": ethtypes.EmptyRootHash,
178-
179-
"uncles": []common.Hash{},
180-
"transactions": transactions,
181-
"totalDifficulty": (*hexutil.Big)(big.NewInt(0)),
178+
"uncles": []common.Hash{},
179+
"transactions": transactions,
180+
"totalDifficulty": (*hexutil.Big)(big.NewInt(0)),
181+
"withdrawalsRoot": hexutil.Bytes(ethtypes.EmptyWithdrawalsHash[:]),
182+
"withdrawals": []*ethtypes.Withdrawal{},
182183
}
183184

184185
if baseFee != nil {

0 commit comments

Comments
 (0)