Skip to content

Commit

Permalink
rpc: add fee currency to transaction information
Browse files Browse the repository at this point in the history
  • Loading branch information
karlb committed Jan 16, 2024
1 parent db91ac2 commit eedca96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit eedca96

Please sign in to comment.