Skip to content

Commit

Permalink
fix(evm): actually return the result of the opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucqs committed Aug 28, 2023
1 parent 820e7a2 commit 7066f65
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions crates/evm/src/interpreter.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7066f65

Please sign in to comment.