You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/execution/vm-interpreter/src/instructions.rs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -434,14 +434,14 @@ impl Instruction {
434
434
pubfninfo<constCANCUN:bool>(
435
435
&self,cip645:bool,eip7939:bool,
436
436
) -> &InstructionInfo{
437
-
let instrs = if eip7939 {
438
-
&*INSTRUCTIONS_EIP7939
439
-
}elseif cip645 {
440
-
&*INSTRUCTIONS_CIP645
441
-
}elseifCANCUN{
437
+
let instrs = if !CANCUN{
438
+
&*INSTRUCTIONS
439
+
}elseif !cip645 {
442
440
&*INSTRUCTIONS_CANCUN
441
+
}elseif !eip7939 {
442
+
&*INSTRUCTIONS_CIP645
443
443
}else{
444
-
&*INSTRUCTIONS
444
+
&*INSTRUCTIONS_EIP7939
445
445
};
446
446
447
447
instrs[*selfasusize].as_ref().expect("A instruction is defined in Instruction enum, but it is not found in InstructionInfo struct; this indicates a logic failure in the code.")
0 commit comments