diff --git a/ethers-solc/src/config.rs b/ethers-solc/src/config.rs index 4f97dd1e..c88f4395 100644 --- a/ethers-solc/src/config.rs +++ b/ethers-solc/src/config.rs @@ -354,6 +354,7 @@ impl ArtifactOutput for MinimalCombinedArtifacts { fn read_cached_artifact(path: impl AsRef) -> Result { let file = fs::File::open(path.as_ref())?; + let file = io::BufReader::new(file); Ok(serde_json::from_reader(file)?) }