Skip to content

Commit

Permalink
[WIP] Implement subroutine opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Peppece committed Oct 25, 2020
1 parent 6eb5737 commit 31249be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/vm/logic/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def beginsub(computation: BaseComputation) -> None:

def jumpsub(computation: BaseComputation) -> None:
sub_loc = computation.stack_pop1_int()
code_range_length = computation.code._length_cache
code_range_length = computation.code.__len__()

if sub_loc >= code_range_length:
raise InvalidJumpDestination(
Expand Down

0 comments on commit 31249be

Please sign in to comment.