aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-19 18:09:46 +0800
committerobscuren <geffobscura@gmail.com>2015-02-19 18:09:46 +0800
commitfdecc11128596eadc00e7a7d81b856d844396c37 (patch)
tree9f02b4940cd24a5a61e4beed1bb031c74266ecb4 /vm
parent487c5cc294d4c0506e50a026737be7f4cc94436f (diff)
downloadgo-tangerine-fdecc11128596eadc00e7a7d81b856d844396c37.tar
go-tangerine-fdecc11128596eadc00e7a7d81b856d844396c37.tar.gz
go-tangerine-fdecc11128596eadc00e7a7d81b856d844396c37.tar.bz2
go-tangerine-fdecc11128596eadc00e7a7d81b856d844396c37.tar.lz
go-tangerine-fdecc11128596eadc00e7a7d81b856d844396c37.tar.xz
go-tangerine-fdecc11128596eadc00e7a7d81b856d844396c37.tar.zst
go-tangerine-fdecc11128596eadc00e7a7d81b856d844396c37.zip
Temp fix for #342
Diffstat (limited to 'vm')
-rw-r--r--vm/vm.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/vm/vm.go b/vm/vm.go
index 29e1ade54..5ec507ddc 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -266,7 +266,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
base.Sub(Pow256, stack.Pop()).Sub(base, ethutil.Big1)
// Not needed
- //base = U256(base)
+ base = U256(base)
stack.Push(base)
case LT:
@@ -532,7 +532,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
case NUMBER:
number := self.env.BlockNumber()
- stack.Push(number)
+ stack.Push(U256(number))
self.Printf(" => 0x%x", number.Bytes())
case DIFFICULTY:
@@ -676,6 +676,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
gas := stack.Pop()
// Pop gas and value of the stack.
value, addr := stack.Popn()
+ value = U256(value)
// Pop input size and offset
inSize, inOffset := stack.Popn()
// Pop return size and offset