diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-15 23:21:08 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-15 23:21:08 +0800 |
commit | 2628103f1df35ad6a130f2f41e73c7703bf61886 (patch) | |
tree | 9ea2013174704e20cf6710a7df194cad7ab25d63 /rpc/api/eth_args.go | |
parent | e79cc42dfe36f6db61cebb37607f5bfe89e4cdcc (diff) | |
download | dexon-2628103f1df35ad6a130f2f41e73c7703bf61886.tar dexon-2628103f1df35ad6a130f2f41e73c7703bf61886.tar.gz dexon-2628103f1df35ad6a130f2f41e73c7703bf61886.tar.bz2 dexon-2628103f1df35ad6a130f2f41e73c7703bf61886.tar.lz dexon-2628103f1df35ad6a130f2f41e73c7703bf61886.tar.xz dexon-2628103f1df35ad6a130f2f41e73c7703bf61886.tar.zst dexon-2628103f1df35ad6a130f2f41e73c7703bf61886.zip |
rpc/api: fixed default gas-(price) issue.
Diffstat (limited to 'rpc/api/eth_args.go')
-rw-r--r-- | rpc/api/eth_args.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/rpc/api/eth_args.go b/rpc/api/eth_args.go index ad9a35fa2..1c86bee51 100644 --- a/rpc/api/eth_args.go +++ b/rpc/api/eth_args.go @@ -333,9 +333,7 @@ func (args *NewTxArgs) UnmarshalJSON(b []byte) (err error) { args.Value = num num = nil - if ext.Gas == nil { - num = big.NewInt(0) - } else { + if ext.Gas != nil { if num, err = numString(ext.Gas); err != nil { return err } @@ -343,9 +341,7 @@ func (args *NewTxArgs) UnmarshalJSON(b []byte) (err error) { args.Gas = num num = nil - if ext.GasPrice == nil { - num = big.NewInt(0) - } else { + if ext.GasPrice != nil { if num, err = numString(ext.GasPrice); err != nil { return err } |