aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-13 05:29:10 +0800
committerobscuren <geffobscura@gmail.com>2015-03-13 05:29:10 +0800
commit310ca62285d2d4aefed91efddefeac7e83b7671d (patch)
tree7ae305e8704daa5622f8a5ac470cc132a081d6b3 /vm
parent2ae90e1eba9dd98ea56c3b1ca38cb18fcfbbb622 (diff)
downloadgo-tangerine-310ca62285d2d4aefed91efddefeac7e83b7671d.tar
go-tangerine-310ca62285d2d4aefed91efddefeac7e83b7671d.tar.gz
go-tangerine-310ca62285d2d4aefed91efddefeac7e83b7671d.tar.bz2
go-tangerine-310ca62285d2d4aefed91efddefeac7e83b7671d.tar.lz
go-tangerine-310ca62285d2d4aefed91efddefeac7e83b7671d.tar.xz
go-tangerine-310ca62285d2d4aefed91efddefeac7e83b7671d.tar.zst
go-tangerine-310ca62285d2d4aefed91efddefeac7e83b7671d.zip
Removed some of that gas pre pay magic
Diffstat (limited to 'vm')
-rw-r--r--vm/vm.go8
1 files changed, 1 insertions, 7 deletions
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)