Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 06cd73d

Browse files
Giuseppe CeramiGiuseppe Cerami
authored andcommitted
[WIP] Implement subroutine opcodes
1 parent 95a0c03 commit 06cd73d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

eth/vm/rstack.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
ValidationError,
1717
)
1818

19-
from collections import UserList as rstack
2019
"""
2120
This module simply implements for the return stack the exact same design used for the data stack.
2221
As this stack must simply push_int or pop1_int any time a subroutine is accessed or left, only those two functions are provided.
@@ -32,10 +31,10 @@ class RStack():
3231

3332
def __init__(self) -> None:
3433
values: List[int]
35-
self.values = rstack.data
36-
self._append = rstack.data.append
37-
self._pop_typed = rstack.data.pop
38-
self.__len__ = rstack.data.__len__
34+
self.values = values
35+
self._append = values.append
36+
self._pop_typed = values.pop
37+
self.__len__ = values.__len__
3938

4039
def push_int(self) -> int:
4140
if len(self.values) > 1023:

0 commit comments

Comments
 (0)