Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Mark GasPrice as 'omitempty' for JSON marshalling
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-imx committed Jul 11, 2023
1 parent 9c77e16 commit c840ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonrpc/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type transactionOrHash interface {

type transaction struct {
Nonce argUint64 `json:"nonce"`
GasPrice *argBig `json:"gasPrice"`
GasPrice *argBig `json:"gasPrice,omitempty"`
GasTipCap *argBig `json:"gasTipCap,omitempty"`
GasFeeCap *argBig `json:"gasFeeCap,omitempty"`
Gas argUint64 `json:"gas"`
Expand Down

0 comments on commit c840ccd

Please sign in to comment.