From 310ca62285d2d4aefed91efddefeac7e83b7671d Mon Sep 17 00:00:00 2001 From: obscuren Date: Thu, 12 Mar 2015 22:29:10 +0100 Subject: Removed some of that gas pre pay magic --- vm/vm.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'vm') diff --git a/vm/vm.go b/vm/vm.go index 97f2fef62..ec6d04703 100644 --- a/vm/vm.go +++ b/vm/vm.go @@ -392,14 +392,8 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I self.Printf(" => %x", context.Address()) case BALANCE: - addr := stack.pop().Bytes() - var balance *big.Int - if statedb.GetStateObject(addr) != nil { - balance = statedb.GetBalance(addr) - } else { - balance = base - } + balance := statedb.GetBalance(addr) stack.push(balance) -- cgit v1.2.3