forked from cerc-io/plugeth
Changed variable names
This commit is contained in:
parent
f9a0a13fa9
commit
d6233c7d2d
@ -175,7 +175,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err
|
|||||||
if err := json.Unmarshal(req.Params, &args); err != nil {
|
if err := json.Unmarshal(req.Params, &args); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
v, err := api.xeth().PushTx(args.encodedTx)
|
v, err := api.xeth().PushTx(args.Data)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -255,13 +255,7 @@ func (self *ethApi) PushTx(req *shared.Request) (interface{}, error) {
|
|||||||
return nil, shared.NewDecodeParamError(err.Error())
|
return nil, shared.NewDecodeParamError(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
// nonce may be nil ("guess" mode)
|
v, err := self.xeth.PushTx(args.Data)
|
||||||
var nonce string
|
|
||||||
if args.Nonce != nil {
|
|
||||||
nonce = args.Nonce.String()
|
|
||||||
}
|
|
||||||
|
|
||||||
v, err := self.xeth.PushTx(args.encodedTx)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user