From d33bb4ba40be0dd1efb55291b78898194680195c Mon Sep 17 00:00:00 2001 From: Danno Ferrin Date: Tue, 30 Apr 2024 18:45:05 -0600 Subject: [PATCH] fix EOF return stack tests The tests were previously corrected against a bug in Besu, Signed-off-by: Danno Ferrin --- tests/prague/eip3540_eof_v1/test_execution_function.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/prague/eip3540_eof_v1/test_execution_function.py b/tests/prague/eip3540_eof_v1/test_execution_function.py index d30b3093f4..91a8a4c841 100644 --- a/tests/prague/eip3540_eof_v1/test_execution_function.py +++ b/tests/prague/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