aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2015-08-13 04:16:18 +0800
committerMaran <maran.hidskes@gmail.com>2015-08-16 17:12:22 +0800
commit8603ec7055a09e5e20938ec47930c416ec8e7d5c (patch)
treec0768c3653338825f6a2cfb3fa6ef62b2721f41f /rpc
parent0dd6911c6222ce65d6aa0760f7c322246464b2d0 (diff)
downloaddexon-8603ec7055a09e5e20938ec47930c416ec8e7d5c.tar
dexon-8603ec7055a09e5e20938ec47930c416ec8e7d5c.tar.gz
dexon-8603ec7055a09e5e20938ec47930c416ec8e7d5c.tar.bz2
dexon-8603ec7055a09e5e20938ec47930c416ec8e7d5c.tar.lz
dexon-8603ec7055a09e5e20938ec47930c416ec8e7d5c.tar.xz
dexon-8603ec7055a09e5e20938ec47930c416ec8e7d5c.tar.zst
dexon-8603ec7055a09e5e20938ec47930c416ec8e7d5c.zip
rpc/api: format pendingTx response. Fixes #1648
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api/eth_args.go16
1 files 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 {