fix fluffy rpc_eth_api tx object initialization

This commit is contained in:
jangko 2023-08-17 13:55:21 +07:00
parent 7c2e1ad3f3
commit c6e7ac1647
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 4 additions and 1 deletions

View File

@ -57,7 +57,10 @@ func init*(
value: encodeQuantity(tx.value),
v: encodeQuantity(tx.V.uint),
r: encodeQuantity(tx.R),
s: encodeQuantity(tx.S)
s: encodeQuantity(tx.S),
`type`: encodeQuantity(tx.txType.uint64),
maxFeePerGas: encodeQuantity(tx.maxFee.uint64),
maxPriorityFeePerGas: encodeQuantity(tx.maxPriorityFee.uint64),
)
# Note: Similar as `populateBlockObject` from rpc_utils, but lacking the