Skip to content

Commit

Permalink
fix(tests): EOF - EIP-3540: return stack tests (#536)
Browse files Browse the repository at this point in the history
The tests were previously corrected against a bug in Besu,

Signed-off-by: Danno Ferrin <[email protected]>
  • Loading branch information
shemnon authored May 23, 2024
1 parent af638de commit 98ee7ba
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
Section.Code(
code=(
Op.DUP1
+ Op.PUSH2(MAX_RETURN_STACK_HEIGHT - 1)
+ Op.PUSH2(MAX_RETURN_STACK_HEIGHT)
+ Op.SUB
+ Op.RJUMPI[len(Op.POP) + len(Op.RETF)]
+ Op.POP
Expand Down Expand Up @@ -170,7 +170,7 @@
Op.PUSH0
+ Op.SLOAD
+ Op.DUP1
+ Op.PUSH2(MAX_RETURN_STACK_HEIGHT - 1)
+ Op.PUSH2(MAX_RETURN_STACK_HEIGHT)
+ Op.SUB
+ Op.RJUMPI[len(Op.POP) + len(Op.STOP)]
+ Op.POP
Expand Down Expand Up @@ -202,7 +202,7 @@
Op.PUSH0
+ Op.MLOAD
+ Op.DUP1
+ Op.PUSH2(MAX_RETURN_STACK_HEIGHT - 1)
+ Op.PUSH2(MAX_RETURN_STACK_HEIGHT)
+ Op.SUB
+ Op.RJUMPI[len(Op.POP) + len(Op.RETF)]
+ Op.POP
Expand Down Expand Up @@ -279,7 +279,7 @@
Op.PUSH0
+ Op.SLOAD
+ Op.DUP1
+ Op.PUSH2(MAX_RETURN_STACK_HEIGHT)
+ Op.PUSH2(MAX_RETURN_STACK_HEIGHT + 1)
+ Op.SUB
+ Op.RJUMPI[len(Op.POP) + len(Op.RETF)]
+ Op.POP
Expand Down

0 comments on commit 98ee7ba

Please sign in to comment.