From 98ee7bab8d018413735a9d020dcf3c2e65d0bef4 Mon Sep 17 00:00:00 2001 From: Danno Ferrin Date: Thu, 23 May 2024 09:28:33 -0600 Subject: [PATCH] fix(tests): EOF - EIP-3540: return stack tests (#536) The tests were previously corrected against a bug in Besu, Signed-off-by: Danno Ferrin --- .../eip3540_eof_v1/test_execution_function.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_execution_function.py b/tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_execution_function.py index d30b3093f4..91a8a4c841 100644 --- a/tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_execution_function.py +++ b/tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_execution_function.py @@ -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 @@ -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 @@ -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 @@ -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