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:
andri lim 2023-09-24 14:33:24 +07:00 committed by GitHub
parent f133d7ab8d
commit fe88d9e6b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ type
value* : UInt256 value* : UInt256
payload* : Blob payload* : Blob
accessList* : AccessList # EIP-2930 accessList* : AccessList # EIP-2930
maxFeePerBlobGas*: GasInt # EIP-4844 maxFeePerBlobGas*: UInt256 # EIP-4844
versionedHashes*: VersionedHashes # EIP-4844 versionedHashes*: VersionedHashes # EIP-4844
networkPayload*: NetworkPayload # EIP-4844 networkPayload*: NetworkPayload # EIP-4844
V* : int64 V* : int64

View File

@ -120,7 +120,7 @@ proc tx7(i: int): Transaction =
maxFee: 10.GasInt, maxFee: 10.GasInt,
accessList: accesses, accessList: accesses,
versionedHashes: @[digest], versionedHashes: @[digest],
maxFeePerBlobGas: 10000000.GasInt, maxFeePerBlobGas: 10000000.u256,
) )
proc tx8(i: int): Transaction = proc tx8(i: int): Transaction =
@ -137,7 +137,7 @@ proc tx8(i: int): Transaction =
maxFee: 10.GasInt, maxFee: 10.GasInt,
accessList: accesses, accessList: accesses,
versionedHashes: @[digest], versionedHashes: @[digest],
maxFeePerBlobGas: 10000000.GasInt, maxFeePerBlobGas: 10000000.u256,
) )
template roundTrip(txFunc: untyped, i: int) = template roundTrip(txFunc: untyped, i: int) =