From 1559bd9e1bce8c5fcc947a1aee778da7446b251b Mon Sep 17 00:00:00 2001 From: Bas van Kervel Date: Wed, 1 Apr 2015 13:15:21 +0200 Subject: [PATCH] changed big.Int instantiation --- xeth/xeth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xeth/xeth.go b/xeth/xeth.go index 7f0c04a123..3f2f14352a 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 }