Skip to content

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 f9237fd commit 567acfb
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 567acfb

Please sign in to comment.