diff --git a/rpc/api.go b/rpc/api.go index 64d27df2ef..01f3007cff 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 c5de2cd3bd..2857202dd4 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 }