Skip to content

Commit b2ce8f9

Browse files
committed
[WIP] Implement subroutine opcodes
1 parent 92b34e1 commit b2ce8f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

eth/vm/rstack.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ def __init__(self) -> None:
3939
self._pop_typed = values.pop
4040
self.__len__ = values.__len__
4141

42-
def push_int(self, value) -> int:
42+
def push_int(self, value) -> None:
4343
if len(self.values) > 1023:
4444
raise FullStack('Stack limit reached')
4545

4646
validate_stack_int(value)
4747

48-
self._append((int, value))
48+
self._append(value)
4949

50-
def pop1_int(self, value) -> int:
50+
def pop1_int(self) -> int:
5151
#
5252
# Note: This function is optimized for speed over readability.
5353
#
@@ -62,5 +62,5 @@ def pop1_int(self, value) -> int:
6262
else:
6363
raise ValidationError(
6464
"Stack must always be bytes or int, "
65-
f"got {item_type!r} type, val {value!r}"
65+
f"got {item_type!r} type"
6666
)

0 commit comments

Comments
 (0)