Skip to content

Commit

Permalink
[skip-ci] update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
StackOverflowExcept1on committed Dec 14, 2023
1 parent 342ae11 commit c909967
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils/calc-stack-height/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ fn main() -> anyhow::Result<()> {
let memory = Memory::new(&store, MemoryType::new(0, None, false))?;
env.insert("memory", Extern::Memory(memory));

// taken from `gear_sandbox_host::sandbox::wasmer_backend::dispatch_function_v2`
// Here we need to repeat the code from
// `gear_sandbox_host::sandbox::wasmer_backend::dispatch_function_v2`, as we
// want to be as close as possible to how the executor uses the stack in the
// node.

#[derive(Default, Clone)]
struct Env;

Expand Down

0 comments on commit c909967

Please sign in to comment.