Skip to content

Commit 61100e3

Browse files
committed
use halt_oog
1 parent 0181177 commit 61100e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/interpreter/src/instructions/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ macro_rules! gas {
6262
};
6363
($interpreter:expr, $gas:expr, $ret:expr) => {
6464
if !$interpreter.gas.record_cost($gas) {
65-
$interpreter.halt($crate::InstructionResult::OutOfGas);
65+
$interpreter.halt_oog();
6666
return $ret;
6767
}
6868
};
@@ -79,7 +79,7 @@ macro_rules! gas_or_fail {
7979
match $gas {
8080
Some(gas_used) => $crate::gas!($interpreter, gas_used, $ret),
8181
None => {
82-
$interpreter.halt($crate::InstructionResult::OutOfGas);
82+
$interpreter.halt_oog();
8383
return $ret;
8484
}
8585
}

0 commit comments

Comments
 (0)