Skip to content

Commit

Permalink
feat: update to stepwise ACVM
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Jul 10, 2023
1 parent b91e953 commit 2fdd5fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,6 @@ wasm-bindgen = { version = "0.2.83", features = ["serde-serialize"] }
wasm-bindgen-test = "0.3.33"

[patch.crates-io]
acvm = { git = "https://github.com/noir-lang/acvm", rev = "fefa4fbf52f92050946f2ff605798e032a4b91c9" }
acvm-backend-barretenberg = { git = "https://github.com/noir-lang/acvm-backend-barretenberg", rev = "447515eff1bed7522c55ec24053b9168bf628553" }
async-lsp = { git = "https://github.com/oxalica/async-lsp", rev = "09dbcc11046f7a188a80137f8d36484d86c78c78" }
9 changes: 4 additions & 5 deletions crates/nargo/src/ops/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ pub fn execute_circuit<B: BlackBoxFunctionSolver + Default>(
unreachable!("Execution should not stop while in `InProgress` state.")
}
ACVMStatus::Failure(error) => return Err(error.into()),
ACVMStatus::RequiresForeignCall => {
while let Some(foreign_call) = acvm.get_pending_foreign_call() {
let foreign_call_result = execute_foreign_call(foreign_call);
acvm.resolve_pending_foreign_call(foreign_call_result);
}
ACVMStatus::RequiresForeignCall(unresolved_brillig_call) => {
let foreign_call_result =
execute_foreign_call(&unresolved_brillig_call.foreign_call_wait_info);
acvm.resolve_pending_foreign_call(foreign_call_result);
}
}
}
Expand Down

0 comments on commit 2fdd5fe

Please sign in to comment.