aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorSilentCicero <silentcicero@outlook.com>2015-06-15 22:07:32 +0800
committerSilentCicero <silentcicero@outlook.com>2015-06-15 22:07:32 +0800
commitd6233c7d2daca8f1c757740e04ba1a8d64588fc0 (patch)
tree424eeac02e3d19ac9ee1639d547bb4d8e48e0a0e /rpc
parentf9a0a13fa97a969b23d98c8dddc63bf8047450d3 (diff)
downloaddexon-d6233c7d2daca8f1c757740e04ba1a8d64588fc0.tar
dexon-d6233c7d2daca8f1c757740e04ba1a8d64588fc0.tar.gz
dexon-d6233c7d2daca8f1c757740e04ba1a8d64588fc0.tar.bz2
dexon-d6233c7d2daca8f1c757740e04ba1a8d64588fc0.tar.lz
dexon-d6233c7d2daca8f1c757740e04ba1a8d64588fc0.tar.xz
dexon-d6233c7d2daca8f1c757740e04ba1a8d64588fc0.tar.zst
dexon-d6233c7d2daca8f1c757740e04ba1a8d64588fc0.zip
Changed variable names
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go2
-rw-r--r--rpc/api/eth.go8
2 files changed, 2 insertions, 8 deletions
diff --git a/rpc/api.go b/rpc/api.go
index 64d27df2e..01f3007cf 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -175,7 +175,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
if err := json.Unmarshal(req.Params, &args); err != nil {
return err
}
- v, err := api.xeth().PushTx(args.encodedTx)
+ v, err := api.xeth().PushTx(args.Data)
if err != nil {
return err
}
diff --git a/rpc/api/eth.go b/rpc/api/eth.go
index c5de2cd3b..2857202dd 100644
--- a/rpc/api/eth.go
+++ b/rpc/api/eth.go
@@ -255,13 +255,7 @@ func (self *ethApi) PushTx(req *shared.Request) (interface{}, error) {
return nil, shared.NewDecodeParamError(err.Error())
}
- // nonce may be nil ("guess" mode)
- var nonce string
- if args.Nonce != nil {
- nonce = args.Nonce.String()
- }
-
- v, err := self.xeth.PushTx(args.encodedTx)
+ v, err := self.xeth.PushTx(args.Data)
if err != nil {
return nil, err
}