Skip to content

Commit 31249be

Browse files
committed
[WIP] Implement subroutine opcodes
1 parent 6eb5737 commit 31249be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/vm/logic/flow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def beginsub(computation: BaseComputation) -> None:
6868

6969
def jumpsub(computation: BaseComputation) -> None:
7070
sub_loc = computation.stack_pop1_int()
71-
code_range_length = computation.code._length_cache
71+
code_range_length = computation.code.__len__()
7272

7373
if sub_loc >= code_range_length:
7474
raise InvalidJumpDestination(

0 commit comments

Comments
 (0)