Skip to content

Commit d3b2bb2

Browse files
committed
fix: Rebuild artifacts in test_verifier_export
1 parent 33089d5 commit d3b2bb2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.config/nextest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limited = { max-threads = 4 }
1616
very-limited = { max-threads = 1 }
1717

1818
[[profile.ci.overrides]]
19-
filter = '(test(syscall::precompiles) | test(stark::machine) | package(sphinx-recursion-program) | package(sphinx-recursion-circuit))'
19+
filter = '(test(syscall::precompiles) | test(stark::machine) | test(test_verifier_export) | package(sphinx-recursion-program) | package(sphinx-recursion-circuit))'
2020
test-group = 'limited'
2121

2222
[[profile.ci.overrides]]

sdk/src/artifacts.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ pub use sphinx_prover::build::{
1010

1111
/// Exports the solidity verifier for PLONK proofs to the specified output directory.
1212
///
13-
/// WARNING: If you are on development mode, this function assumes that the PLONK artifacts have
14-
/// already been built.
13+
/// WARNING: If you are on development mode, this function will rebuild the PLONK artifacts.
1514
pub fn export_solidity_plonk_bn254_verifier(output_dir: impl Into<PathBuf>) -> Result<()> {
1615
let output_dir: PathBuf = output_dir.into();
1716
let artifacts_dir = if sphinx_prover::build::sphinx_dev_mode() {
18-
sphinx_prover::build::plonk_bn254_artifacts_dev_dir()
17+
let dir = sphinx_prover::build::plonk_bn254_artifacts_dev_dir();
18+
sphinx_prover::build::build_plonk_bn254_artifacts_with_dummy(dir.clone());
19+
dir
1920
} else {
2021
try_install_plonk_bn254_artifacts(false)
2122
};

0 commit comments

Comments
 (0)