diff options
author | Bas van Kervel <basvankervel@ziggo.nl> | 2015-04-01 19:15:21 +0800 |
---|---|---|
committer | Bas van Kervel <basvankervel@ziggo.nl> | 2015-04-01 19:15:21 +0800 |
commit | 1559bd9e1bce8c5fcc947a1aee778da7446b251b (patch) | |
tree | 154f52ee01ad7126519cfb279a967d833e6508fd /xeth | |
parent | 6605d00d92c029a46f624d3f295758f62c3dddd4 (diff) | |
download | dexon-1559bd9e1bce8c5fcc947a1aee778da7446b251b.tar dexon-1559bd9e1bce8c5fcc947a1aee778da7446b251b.tar.gz dexon-1559bd9e1bce8c5fcc947a1aee778da7446b251b.tar.bz2 dexon-1559bd9e1bce8c5fcc947a1aee778da7446b251b.tar.lz dexon-1559bd9e1bce8c5fcc947a1aee778da7446b251b.tar.xz dexon-1559bd9e1bce8c5fcc947a1aee778da7446b251b.tar.zst dexon-1559bd9e1bce8c5fcc947a1aee778da7446b251b.zip |
changed big.Int instantiation
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/xeth.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index 7f0c04a12..3f2f14352 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -128,8 +128,8 @@ func cTopics(t [][]string) [][]common.Hash { return topics } -func (self *XEth) DefaultGas() *big.Int { return big.NewInt(defaultGas.Int64()) } -func (self *XEth) DefaultGasPrice() *big.Int { return big.NewInt(defaultGasPrice.Int64()) } +func (self *XEth) DefaultGas() *big.Int { return new(big.Int).Set(defaultGas) } +func (self *XEth) DefaultGasPrice() *big.Int { return new(big.Int).Set(defaultGasPrice) } func (self *XEth) RemoteMining() *miner.RemoteAgent { return self.agent } |