Skip to content

Commit

Permalink
test adding a no RC args dry run function
Browse files Browse the repository at this point in the history
  • Loading branch information
yymone committed Oct 9, 2023
1 parent 4720809 commit dd67c8c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/zkwasm/src/loader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,16 @@ impl<E: MultiMillerLoop> ZkWasmLoader<E> {
}

impl<E: MultiMillerLoop> ZkWasmLoader<E> {
pub fn dry_run_without_output(&self, public_inputs: Vec<u64>, private_inputs: Vec<u64>, context_inputs: Vec<u64>) -> Result<Option<RuntimeValue>> {
let context_outputs = Rc::new(RefCell::new(vec![]));
self.dry_run(ExecutionArg {
public_inputs,
private_inputs,
context_inputs,
context_outputs,
})
}

pub fn dry_run(&self, arg: ExecutionArg) -> Result<Option<RuntimeValue>> {
let (mut env, _) = HostEnv::new_with_full_foreign_plugins(
arg.public_inputs,
Expand Down

0 comments on commit dd67c8c

Please sign in to comment.