diff --git a/jsonrpc/types.go b/jsonrpc/types.go index c4fd563695..eb4f710845 100644 --- a/jsonrpc/types.go +++ b/jsonrpc/types.go @@ -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"`