aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_object.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain/state_object.go')
-rw-r--r--ethchain/state_object.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/state_object.go b/ethchain/state_object.go
index a1dd531de..b92374882 100644
--- a/ethchain/state_object.go
+++ b/ethchain/state_object.go
@@ -135,7 +135,7 @@ func (c *StateObject) ConvertGas(gas, price *big.Int) error {
func (self *StateObject) BuyGas(gas, price *big.Int) error {
rGas := new(big.Int).Set(gas)
- rGas.Mul(gas, price)
+ rGas.Mul(rGas, price)
self.AddAmount(rGas)