We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0181177 commit 61100e3Copy full SHA for 61100e3
crates/interpreter/src/instructions/macros.rs
@@ -62,7 +62,7 @@ macro_rules! gas {
62
};
63
($interpreter:expr, $gas:expr, $ret:expr) => {
64
if !$interpreter.gas.record_cost($gas) {
65
- $interpreter.halt($crate::InstructionResult::OutOfGas);
+ $interpreter.halt_oog();
66
return $ret;
67
}
68
@@ -79,7 +79,7 @@ macro_rules! gas_or_fail {
79
match $gas {
80
Some(gas_used) => $crate::gas!($interpreter, gas_used, $ret),
81
None => {
82
83
84
85
0 commit comments