aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 14:13:29 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-20 14:13:29 +0800
commitaa3918efa711a51c241a70d675b27fc0f0c01ec3 (patch)
treecc312606bf39db44bc750605fc11f928184adcb0 /rpc/api.go
parente038a42d7a0e7e2c6ad7cef6c6446ad1e9454fe5 (diff)
downloadgo-tangerine-aa3918efa711a51c241a70d675b27fc0f0c01ec3.tar.gz
go-tangerine-aa3918efa711a51c241a70d675b27fc0f0c01ec3.tar.zst
go-tangerine-aa3918efa711a51c241a70d675b27fc0f0c01ec3.zip
Move transact gas check to XEth
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go10
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