diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-26 17:34:21 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-26 17:34:21 +0800 |
commit | 966cfa4bddb0fbe355dadb83541325a3b5c132f8 (patch) | |
tree | 69f3270d7021949de54d2142e76301d7c325c6ef /rpc/api.go | |
parent | c7dc379da5a02fb8ac92788fa317379fbde00d20 (diff) | |
download | dexon-966cfa4bddb0fbe355dadb83541325a3b5c132f8.tar.gz dexon-966cfa4bddb0fbe355dadb83541325a3b5c132f8.tar.zst dexon-966cfa4bddb0fbe355dadb83541325a3b5c132f8.zip |
NewTxArgs
Diffstat (limited to 'rpc/api.go')
-rw-r--r-- | rpc/api.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/rpc/api.go b/rpc/api.go index 8d1a412d1..b5f759711 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -185,11 +185,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err return err } - if err := args.requirements(); err != nil { - return err - } - - v, err := api.xeth().Transact(args.From, args.To, args.Value.String(), args.Gas.String(), args.GasPrice.String(), args.Data) + v, err := api.xeth().Transact(args.From.Hex(), args.To.Hex(), args.Value.String(), args.Gas.String(), args.GasPrice.String(), args.Data) if err != nil { return err } @@ -200,7 +196,7 @@ func (api *EthereumApi) GetRequestReply(req *RpcRequest, reply *interface{}) err return err } - v, err := api.xethAtStateNum(args.BlockNumber).Call(args.From, args.To, args.Value.String(), args.Gas.String(), args.GasPrice.String(), args.Data) + v, err := api.xethAtStateNum(args.BlockNumber).Call(args.From.Hex(), args.To.Hex(), args.Value.String(), args.Gas.String(), args.GasPrice.String(), args.Data) if err != nil { return err } |