diff --git a/crates/recursion/gnark-ffi/src/plonk_bn254.rs b/crates/recursion/gnark-ffi/src/plonk_bn254.rs index 71400ea4d6..f1bb8af617 100644 --- a/crates/recursion/gnark-ffi/src/plonk_bn254.rs +++ b/crates/recursion/gnark-ffi/src/plonk_bn254.rs @@ -126,7 +126,7 @@ impl PlonkBn254Prover { /// Modify the PlonkVerifier so that it works with the SP1Verifier. fn modify_plonk_verifier(file_path: &Path) -> io::Result<()> { - let mut file = File::open(file_path)?; + let mut file = File::options().read(true).write(true).open(file_path)?; let mut content = String::new(); file.read_to_string(&mut content)?;