Merge pull request #645 from pirapira/first_loop_second_loop

eip-165: when the first loop hits BEGINDATA, the second loop should still run
This commit is contained in:
Greg Colvin 2018-01-19 22:26:30 -07:00 committed by GitHub
commit 606405b5ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,7 +217,7 @@ Validating that jumps are to valid addresses takes two sequential passes over th
if instruction is invalid
return false
if instruction is BEGINDATA
return true
break
if instruction is BEGINSUB
is_sub[PC] = true
current_sub = PC