Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:holochain/holochain-wasmer into …
Browse files Browse the repository at this point in the history
…2023-11-08-persist
  • Loading branch information
thedavidmeister committed Nov 12, 2023
2 parents 7a5d19f + 94f6853 commit ff28841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/host/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ impl Env {
&self,
store_mut: &mut StoreMut,
) -> Result<MeteringPoints, wasmer::RuntimeError> {
let exhaused: i32 = self
let exhausted: i32 = self
.wasmer_metering_points_exhausted
.as_ref()
.ok_or(wasm_error!(WasmErrorInner::Memory))?
.get(store_mut)
.try_into()
.map_err(|_| wasm_error!(WasmErrorInner::PointerMap))?;

if exhaused > 0 {
if exhausted > 0 {
return Ok(MeteringPoints::Exhausted);
}

Expand Down

0 comments on commit ff28841

Please sign in to comment.