From 8603ec7055a09e5e20938ec47930c416ec8e7d5c Mon Sep 17 00:00:00 2001 From: Maran Date: Wed, 12 Aug 2015 22:16:18 +0200 Subject: rpc/api: format pendingTx response. Fixes #1648 --- rpc/api/eth_args.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/rpc/api/eth_args.go b/rpc/api/eth_args.go index 5a1841cbe..8bd077e20 100644 --- a/rpc/api/eth_args.go +++ b/rpc/api/eth_args.go @@ -908,14 +908,14 @@ func (args *SubmitWorkArgs) UnmarshalJSON(b []byte) (err error) { type tx struct { tx *types.Transaction - To string - From string - Nonce string - Value string - Data string - GasLimit string - GasPrice string - Hash string + To string `json:"to"` + From string `json:"from"` + Nonce string `json:"nonce"` + Value string `json:"value"` + Data string `json:"data"` + GasLimit string `json:"gas"` + GasPrice string `json:"gasPrice"` + Hash string `json:"hash"` } func newTx(t *types.Transaction) *tx { -- cgit