From 7066f6565d34b828a5c5bedd704e423478a96184 Mon Sep 17 00:00:00 2001 From: LucasLvy Date: Mon, 28 Aug 2023 19:50:53 +0200 Subject: [PATCH] fix(evm): actually return the result of the opcode --- crates/evm/src/interpreter.cairo | 66 ++++++++++++++++---------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/crates/evm/src/interpreter.cairo b/crates/evm/src/interpreter.cairo index 82fffaca5..bb309ea97 100644 --- a/crates/evm/src/interpreter.cairo +++ b/crates/evm/src/interpreter.cairo @@ -343,135 +343,135 @@ impl EVMInterpreterImpl of EVMInterpreterTrait { } if opcode == 95 { // PUSH0 - context.exec_push0()?; + return context.exec_push0(); } if opcode == 96 { // PUSH1 - context.exec_push1()?; + return context.exec_push1(); } if opcode == 97 { // PUSH2 - context.exec_push2()?; + return context.exec_push2(); } if opcode == 98 { // PUSH3 - context.exec_push3()?; + return context.exec_push3(); } if opcode == 99 { // PUSH4 - context.exec_push4()?; + return context.exec_push4(); } if opcode == 100 { // PUSH5 - context.exec_push5()?; + return context.exec_push5(); } if opcode == 101 { // PUSH6 - context.exec_push6()?; + return context.exec_push6(); } if opcode == 102 { // PUSH7 - context.exec_push7()?; + return context.exec_push7(); } if opcode == 103 { // PUSH8 - context.exec_push8()?; + return context.exec_push8(); } if opcode == 104 { // PUSH9 - context.exec_push9()?; + return context.exec_push9(); } if opcode == 105 { // PUSH10 - context.exec_push10()?; + return context.exec_push10(); } if opcode == 106 { // PUSH11 - context.exec_push11()?; + return context.exec_push11(); } if opcode == 107 { // PUSH12 - context.exec_push12()?; + return context.exec_push12(); } if opcode == 108 { // PUSH13 - context.exec_push13()?; + return context.exec_push13(); } if opcode == 109 { // PUSH14 - context.exec_push14()?; + return context.exec_push14(); } if opcode == 110 { // PUSH15 - context.exec_push15()?; + return context.exec_push15(); } if opcode == 111 { // PUSH16 - context.exec_push16()?; + return context.exec_push16(); } if opcode == 112 { // PUSH17 - context.exec_push17()?; + return context.exec_push17(); } if opcode == 113 { // PUSH18 - context.exec_push18()?; + return context.exec_push18(); } if opcode == 114 { // PUSH19 - context.exec_push19()?; + return context.exec_push19(); } if opcode == 115 { // PUSH20 - context.exec_push20()?; + return context.exec_push20(); } if opcode == 116 { // PUSH21 - context.exec_push21()?; + return context.exec_push21(); } if opcode == 117 { // PUSH22 - context.exec_push22()?; + return context.exec_push22(); } if opcode == 118 { // PUSH23 - context.exec_push23()?; + return context.exec_push23(); } if opcode == 119 { // PUSH24 - context.exec_push24()?; + return context.exec_push24(); } if opcode == 120 { // PUSH25 - context.exec_push25()?; + return context.exec_push25(); } if opcode == 121 { // PUSH26 - context.exec_push26()?; + return context.exec_push26(); } if opcode == 122 { // PUSH27 - context.exec_push27()?; + return context.exec_push27(); } if opcode == 123 { // PUSH28 - context.exec_push28()?; + return context.exec_push28(); } if opcode == 124 { // PUSH29 - context.exec_push29()?; + return context.exec_push29(); } if opcode == 125 { // PUSH30 - context.exec_push30()?; + return context.exec_push30(); } if opcode == 126 { // PUSH31 - context.exec_push31()?; + return context.exec_push31(); } if opcode == 127 { // PUSH32 - context.exec_push32()?; + return context.exec_push32(); } if opcode == 128 { // DUP1