bump `nim-web3` to `747001250a27278e0f0f1706fe1dec88ad3ede8d` (#6020)
- Remove error field from AccessListResult - Add optional yParity field to TransactionObject
This commit is contained in:
parent
649f0165b8
commit
bb8c6cda18
|
@ -1459,12 +1459,12 @@ proc ETHTransactionsCreateFromJson(
|
||||||
return nil
|
return nil
|
||||||
|
|
||||||
# Check fork consistency
|
# Check fork consistency
|
||||||
static: doAssert totalSerializedFields(TransactionObject) == 21,
|
static: doAssert totalSerializedFields(TransactionObject) == 22,
|
||||||
"Only update this number once code is adjusted to check new fields!"
|
"Only update this number once code is adjusted to check new fields!"
|
||||||
let txType =
|
let txType =
|
||||||
case data.`type`.get(0.Quantity):
|
case data.`type`.get(0.Quantity):
|
||||||
of 0.Quantity:
|
of 0.Quantity:
|
||||||
if data.accessList.isSome or
|
if data.yParity.isSome or data.accessList.isSome or
|
||||||
data.maxFeePerGas.isSome or data.maxPriorityFeePerGas.isSome or
|
data.maxFeePerGas.isSome or data.maxPriorityFeePerGas.isSome or
|
||||||
data.maxFeePerBlobGas.isSome or data.blobVersionedHashes.isSome:
|
data.maxFeePerBlobGas.isSome or data.blobVersionedHashes.isSome:
|
||||||
return nil
|
return nil
|
||||||
|
@ -1512,7 +1512,14 @@ proc ETHTransactionsCreateFromJson(
|
||||||
return nil
|
return nil
|
||||||
if distinctBase(data.gas) > int64.high.uint64:
|
if distinctBase(data.gas) > int64.high.uint64:
|
||||||
return nil
|
return nil
|
||||||
if data.v.uint64 > int64.high.uint64:
|
if distinctBase(data.v) > int64.high.uint64:
|
||||||
|
return nil
|
||||||
|
if data.yParity.isSome:
|
||||||
|
# This is not always included, but if it is, make sure it's correct
|
||||||
|
let yParity = data.yParity.get
|
||||||
|
if distinctBase(yParity) > 1:
|
||||||
|
return nil
|
||||||
|
if yParity != data.v:
|
||||||
return nil
|
return nil
|
||||||
let
|
let
|
||||||
tx = ExecutionTransaction(
|
tx = ExecutionTransaction(
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 15325bd844a38234e4f705b3399d0bbfa3b63a12
|
Subproject commit 747001250a27278e0f0f1706fe1dec88ad3ede8d
|
Loading…
Reference in New Issue