diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-02 20:00:49 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-02 20:00:49 +0800 |
commit | 1e28b424e7f0f0d16f467ac7bac08b9dc0384106 (patch) | |
tree | bfed2a8a37bac9a4c25d1999156f2ec5b5b672ec /xeth | |
parent | 55b1c1546b72b24b087cecf18f3e52bad5c758c8 (diff) | |
download | go-tangerine-1e28b424e7f0f0d16f467ac7bac08b9dc0384106.tar go-tangerine-1e28b424e7f0f0d16f467ac7bac08b9dc0384106.tar.gz go-tangerine-1e28b424e7f0f0d16f467ac7bac08b9dc0384106.tar.bz2 go-tangerine-1e28b424e7f0f0d16f467ac7bac08b9dc0384106.tar.lz go-tangerine-1e28b424e7f0f0d16f467ac7bac08b9dc0384106.tar.xz go-tangerine-1e28b424e7f0f0d16f467ac7bac08b9dc0384106.tar.zst go-tangerine-1e28b424e7f0f0d16f467ac7bac08b9dc0384106.zip |
Default gas
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/xeth.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index cb2319865..13a183832 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -566,11 +566,11 @@ func (self *XEth) Call(fromStr, toStr, valueStr, gasStr, gasPriceStr, dataStr st } if msg.gas.Cmp(big.NewInt(0)) == 0 { - msg.gas = self.DefaultGas() + msg.gas = DefaultGas() } if msg.gasPrice.Cmp(big.NewInt(0)) == 0 { - msg.gasPrice = self.DefaultGasPrice() + msg.gasPrice = DefaultGasPrice() } block := self.CurrentBlock() @@ -616,11 +616,11 @@ func (self *XEth) Transact(fromStr, toStr, valueStr, gasStr, gasPriceStr, codeSt // TODO: align default values to have the same type, e.g. not depend on // common.Value conversions later on if gas.Cmp(big.NewInt(0)) == 0 { - gas = self.DefaultGas() + gas = DefaultGas() } if price.Cmp(big.NewInt(0)) == 0 { - price = self.DefaultGasPrice() + price = DefaultGasPrice() } data = common.FromHex(codeStr) |