Add MaxFeePerGas and MaxPriorityFeePerGas to TransferView
This commit is contained in:
parent
9f9f00b7a2
commit
c78eac8d94
|
@ -26,6 +26,8 @@ func castToTransferView(t Transfer) TransferView {
|
|||
view.BlockHash = t.BlockHash
|
||||
view.Timestamp = hexutil.Uint64(t.Timestamp)
|
||||
view.GasPrice = (*hexutil.Big)(t.Transaction.GasPrice())
|
||||
view.MaxFeePerGas = (*hexutil.Big)(t.Transaction.GasFeeCap())
|
||||
view.MaxPriorityFeePerGas = (*hexutil.Big)(t.Transaction.GasTipCap())
|
||||
view.GasLimit = hexutil.Uint64(t.Transaction.Gas())
|
||||
view.GasUsed = hexutil.Uint64(t.Receipt.GasUsed)
|
||||
view.Nonce = hexutil.Uint64(t.Transaction.Nonce())
|
||||
|
@ -87,6 +89,8 @@ type TransferView struct {
|
|||
BlockHash common.Hash `json:"blockhash"`
|
||||
Timestamp hexutil.Uint64 `json:"timestamp"`
|
||||
GasPrice *hexutil.Big `json:"gasPrice"`
|
||||
MaxFeePerGas *hexutil.Big `json:"maxFeePerGas"`
|
||||
MaxPriorityFeePerGas *hexutil.Big `json:"maxPriorityFeePerGas"`
|
||||
GasLimit hexutil.Uint64 `json:"gasLimit"`
|
||||
GasUsed hexutil.Uint64 `json:"gasUsed"`
|
||||
Nonce hexutil.Uint64 `json:"nonce"`
|
||||
|
|
Loading…
Reference in New Issue