From 98962d9919eb9d613aa9e530e6201cc304dbe85f Mon Sep 17 00:00:00 2001 From: gop Date: Tue, 8 Oct 2024 11:26:03 -0500 Subject: [PATCH] bugfix: Fixed the json encoding of the rpc transactions --- internal/quaiapi/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/quaiapi/api.go b/internal/quaiapi/api.go index 4a2646b787..4fccd08028 100644 --- a/internal/quaiapi/api.go +++ b/internal/quaiapi/api.go @@ -990,8 +990,8 @@ type RPCTransaction struct { MinerTip *hexutil.Big `json:"minerTip,omitempty"` GasPrice *hexutil.Big `json:"gasPrice,omitempty"` Hash common.Hash `json:"hash,omitempty"` - Input hexutil.Bytes `json:"input,omitempty"` - Nonce hexutil.Uint64 `json:"nonce,omitempty"` + Input hexutil.Bytes `json:"input"` + Nonce hexutil.Uint64 `json:"nonce"` To *common.MixedcaseAddress `json:"to,omitempty"` TransactionIndex *hexutil.Uint64 `json:"transactionIndex"` Value *hexutil.Big `json:"value,omitempty"`