aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@ziggo.nl>2015-04-01 19:15:21 +0800
committerBas van Kervel <basvankervel@ziggo.nl>2015-04-01 19:15:21 +0800
commit1559bd9e1bce8c5fcc947a1aee778da7446b251b (patch)
tree154f52ee01ad7126519cfb279a967d833e6508fd
parent6605d00d92c029a46f624d3f295758f62c3dddd4 (diff)
downloaddexon-1559bd9e1bce8c5fcc947a1aee778da7446b251b.tar.gz
dexon-1559bd9e1bce8c5fcc947a1aee778da7446b251b.tar.zst
dexon-1559bd9e1bce8c5fcc947a1aee778da7446b251b.zip
changed big.Int instantiation
-rw-r--r--xeth/xeth.go4
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 }