Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit f3a5a7a

Browse files
authored
Fix: Drop anvil stdout (#1759)
1 parent b2fc9fd commit f3a5a7a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ethers-core/src/utils/anvil.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ impl Anvil {
250250

251251
let mut child = cmd.spawn().expect("couldnt start anvil");
252252

253-
let stdout = child.stdout.expect("Unable to get stdout for anvil child process");
253+
let stdout = child.stdout.take().expect("Unable to get stdout for anvil child process");
254254

255255
let start = Instant::now();
256256
let mut reader = BufReader::new(stdout);
@@ -284,8 +284,6 @@ impl Anvil {
284284
}
285285
}
286286

287-
child.stdout = Some(reader.into_inner());
288-
289287
AnvilInstance { pid: child, private_keys, addresses, port, chain_id: self.chain_id }
290288
}
291289
}

0 commit comments

Comments
 (0)