From eedca96fdc3f62ae19d946db267e220c3b548caa Mon Sep 17 00:00:00 2001 From: Karl Bartel Date: Wed, 10 Jan 2024 15:28:03 +0100 Subject: [PATCH] rpc: add fee currency to transaction information --- internal/ethapi/api.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 4b5db86e16..b129290735 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1572,6 +1572,9 @@ type RPCTransaction struct { IsSystemTx *bool `json:"isSystemTx,omitempty"` // deposit-tx post-Canyon only DepositReceiptVersion *hexutil.Uint64 `json:"depositReceiptVersion,omitempty"` + + // Celo + FeeCurrency *common.Address `json:"feeCurrency,omitempty"` } // newRPCTransaction returns a transaction that will serialize to the RPC @@ -1593,6 +1596,8 @@ func newRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber V: (*hexutil.Big)(v), R: (*hexutil.Big)(r), S: (*hexutil.Big)(s), + // Celo + FeeCurrency: tx.FeeCurrency(), } if blockHash != (common.Hash{}) { result.BlockHash = &blockHash