From 567acfbd46261346601d17bbafb9961c61cb8cfc Mon Sep 17 00:00:00 2001 From: Juan Palacios Date: Tue, 11 Jul 2023 13:37:08 +1000 Subject: [PATCH] Mark GasPrice as 'omitempty' for JSON marshalling --- jsonrpc/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"`