Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/wasm_ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ pub trait ZKWASMCtx {
let mut func_results = prepare_func_results(&ty);

// Call the function to invoke.
func.call_with_trace(&mut store, &func_args, &mut func_results, tracer.clone())?;
match func.call_with_trace(&mut store, &func_args, &mut func_results, tracer.clone()) {
Ok(()) => {}
// Permit exit(0) to end execution early and continue proving.
Err(wasmi::Error::Trap(t)) if t.i32_exit_status() == Some(0) => {}
Err(e) => return Err(e.into()),
}
tracing::debug!("wasm func res: {:#?}", func_results);

// Extract the execution trace produced from WASM execution.
Expand Down
Loading