diff options
author | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 14:13:29 +0800 |
---|---|---|
committer | Taylor Gerring <taylor.gerring@gmail.com> | 2015-03-20 14:13:29 +0800 |
commit | aa3918efa711a51c241a70d675b27fc0f0c01ec3 (patch) | |
tree | cc312606bf39db44bc750605fc11f928184adcb0 /rpc | |
parent | e038a42d7a0e7e2c6ad7cef6c6446ad1e9454fe5 (diff) | |
download | dexon-aa3918efa711a51c241a70d675b27fc0f0c01ec3.tar dexon-aa3918efa711a51c241a70d675b27fc0f0c01ec3.tar.gz dexon-aa3918efa711a51c241a70d675b27fc0f0c01ec3.tar.bz2 dexon-aa3918efa711a51c241a70d675b27fc0f0c01ec3.tar.lz dexon-aa3918efa711a51c241a70d675b27fc0f0c01ec3.tar.xz dexon-aa3918efa711a51c241a70d675b27fc0f0c01ec3.tar.zst dexon-aa3918efa711a51c241a70d675b27fc0f0c01ec3.zip |
Move transact gas check to XEth
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/api.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/rpc/api.go b/rpc/api.go index 0596aee48..20b586686 100644 --- a/rpc/api.go +++ b/rpc/api.go @@ -48,16 +48,6 @@ func (p *EthereumApi) Transact(args *NewTxArgs, reply *interface{}) (err error) return err } - // TODO: align default values to have the same type, e.g. not depend on - // common.Value conversions later on - if args.Gas.Cmp(big.NewInt(0)) == 0 { - args.Gas = p.xeth().DefaultGas() - } - - if args.GasPrice.Cmp(big.NewInt(0)) == 0 { - args.GasPrice = p.xeth().DefaultGasPrice() - } - *reply, err = p.xeth().Transact(args.From, args.To, args.Value.String(), args.Gas.String(), args.GasPrice.String(), args.Data) if err != nil { return err |