Skip to content

Commit

Permalink
fix: comment on HandleOutOfGasPanic
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed Nov 4, 2024
1 parent cdeb00d commit f688bae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/evm/precompile/funtoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (p precompileFunToken) Run(
}
p.evmKeeper.Bank.StateDB = startResult.StateDB

// Resets the gas meter to parent one after precompile execution and gracefully handles "out of gas"
// Gracefully handles "out of gas"
defer HandleOutOfGasPanic(&err)()

method := startResult.Method
Expand Down
2 changes: 1 addition & 1 deletion x/evm/precompile/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (p precompileWasm) Run(
return nil, err
}

// Resets the gas meter to parent one after precompile execution and gracefully handles "out of gas"
// Gracefully handles "out of gas"
defer HandleOutOfGasPanic(&err)()

// NOTE: The NibiruBankKeeper needs to reference the current [vm.StateDB] before
Expand Down

0 comments on commit f688bae

Please sign in to comment.