mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
dev: update PUSH1 to PUSH0
This commit is contained in:
parent
12dce57b4f
commit
1322a5df72
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ func (it *instructionIterator) Next() bool {
|
||||||
|
|
||||||
it.op = vm.OpCode(it.code[it.pc])
|
it.op = vm.OpCode(it.code[it.pc])
|
||||||
if it.op.IsPush() {
|
if it.op.IsPush() {
|
||||||
a := uint64(it.op) + 1 - uint64(vm.PUSH1)
|
a := uint64(it.op) - uint64(vm.PUSH0)
|
||||||
u := it.pc + 1 + a
|
u := it.pc + 1 + a
|
||||||
if uint64(len(it.code)) <= it.pc || uint64(len(it.code)) < u {
|
if uint64(len(it.code)) <= it.pc || uint64(len(it.code)) < u {
|
||||||
it.error = fmt.Errorf("incomplete push instruction at %v", it.pc)
|
it.error = fmt.Errorf("incomplete push instruction at %v", it.pc)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue