Skip to content

Commit

Permalink
use gas macro
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Aug 23, 2023
1 parent fbec41c commit b0c5a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/interpreter/src/instructions/macros.rs
Expand Up @@ -39,7 +39,7 @@ macro_rules! gas_or_fail {
($interp:expr, $gas:expr) => {
if crate::USE_GAS {
match $gas {
Some(gas_used) if $interp.gas.record_cost(gas_used) => {}
Some(gas_used) => gas!($interp, gas_used),
_ => {
$interp.instruction_result = InstructionResult::OutOfGas;
return;
Expand Down

0 comments on commit b0c5a3e

Please sign in to comment.