Skip to content

Commit

Permalink
Temp fix for #342
Browse files Browse the repository at this point in the history
  • Loading branch information
obscuren committed Feb 19, 2015
1 parent 487c5cc commit fdecc11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fdecc11

Please sign in to comment.