mirror of https://github.com/status-im/nim-eth.git
Change maxFeePerBlobGas from GasInt to UInt256 (#640)
* Change maxFeePerBlobGas from GasInt to UInt256 per latest spec: https://eips.ethereum.org/EIPS/eip-4844#blob-transaction * fix eip-4844 test
This commit is contained in:
parent
f133d7ab8d
commit
fe88d9e6b7
|
@ -98,7 +98,7 @@ type
|
|||
value* : UInt256
|
||||
payload* : Blob
|
||||
accessList* : AccessList # EIP-2930
|
||||
maxFeePerBlobGas*: GasInt # EIP-4844
|
||||
maxFeePerBlobGas*: UInt256 # EIP-4844
|
||||
versionedHashes*: VersionedHashes # EIP-4844
|
||||
networkPayload*: NetworkPayload # EIP-4844
|
||||
V* : int64
|
||||
|
|
|
@ -120,7 +120,7 @@ proc tx7(i: int): Transaction =
|
|||
maxFee: 10.GasInt,
|
||||
accessList: accesses,
|
||||
versionedHashes: @[digest],
|
||||
maxFeePerBlobGas: 10000000.GasInt,
|
||||
maxFeePerBlobGas: 10000000.u256,
|
||||
)
|
||||
|
||||
proc tx8(i: int): Transaction =
|
||||
|
@ -137,7 +137,7 @@ proc tx8(i: int): Transaction =
|
|||
maxFee: 10.GasInt,
|
||||
accessList: accesses,
|
||||
versionedHashes: @[digest],
|
||||
maxFeePerBlobGas: 10000000.GasInt,
|
||||
maxFeePerBlobGas: 10000000.u256,
|
||||
)
|
||||
|
||||
template roundTrip(txFunc: untyped, i: int) =
|
||||
|
|
Loading…
Reference in New Issue