mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-22 07:49:26 +00:00
Temp fix for #342
This commit is contained in:
parent
487c5cc294
commit
fdecc11128
1 changed files with 3 additions and 2 deletions
5
vm/vm.go
5
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)
|
base.Sub(Pow256, stack.Pop()).Sub(base, ethutil.Big1)
|
||||||
|
|
||||||
// Not needed
|
// Not needed
|
||||||
//base = U256(base)
|
base = U256(base)
|
||||||
|
|
||||||
stack.Push(base)
|
stack.Push(base)
|
||||||
case LT:
|
case LT:
|
||||||
|
|
@ -532,7 +532,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
|
||||||
case NUMBER:
|
case NUMBER:
|
||||||
number := self.env.BlockNumber()
|
number := self.env.BlockNumber()
|
||||||
|
|
||||||
stack.Push(number)
|
stack.Push(U256(number))
|
||||||
|
|
||||||
self.Printf(" => 0x%x", number.Bytes())
|
self.Printf(" => 0x%x", number.Bytes())
|
||||||
case DIFFICULTY:
|
case DIFFICULTY:
|
||||||
|
|
@ -676,6 +676,7 @@ func (self *Vm) Run(me, caller ContextRef, code []byte, value, gas, price *big.I
|
||||||
gas := stack.Pop()
|
gas := stack.Pop()
|
||||||
// Pop gas and value of the stack.
|
// Pop gas and value of the stack.
|
||||||
value, addr := stack.Popn()
|
value, addr := stack.Popn()
|
||||||
|
value = U256(value)
|
||||||
// Pop input size and offset
|
// Pop input size and offset
|
||||||
inSize, inOffset := stack.Popn()
|
inSize, inOffset := stack.Popn()
|
||||||
// Pop return size and offset
|
// Pop return size and offset
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue