From 7159f0372cba3fb4268471ab1a14b909605b4c64 Mon Sep 17 00:00:00 2001 From: Yuwen Zhang Date: Fri, 8 Nov 2024 13:19:37 -0800 Subject: [PATCH] io fix --- crates/recursion/gnark-ffi/src/plonk_bn254.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)?;