mopro
mopro copied to clipboard
Fix mopro-core caching of circuit
Problem
When running ./scripts/build_ios.sh config-complex.toml
and changing circuit from 100k to 200k etc it seems like mopro-core often remembers the old circuit. If a new circuit name is provided it should force a re-build.
Details
warning: config: /Users/user/repos/github.com/oskarth/mopro/config-complex.toml
warning: zkey_file: /Users/user/repos/github.com/oskarth/mopro/mopro-core/examples/circom/complex-circuit/target/complex-circuit-200k-200k_final.zkey
warning: wasm_file: /Users/user/repos/github.com/oskarth/mopro/mopro-core/examples/circom/complex-circuit/target/complex-circuit-200k-200k_js/complex-circuit-200k-200k.wasm
warning: arkzkey_file: /Users/user/repos/github.com/oskarth/mopro/mopro-core/examples/circom/complex-circuit/target/complex-circuit-200k-200k_final.arkzkey
Workaround
As a workaround, we can run cargo clean
in mopro-core/mopro-ffi.