Fix: Drop anvil stdout (#1759)

This commit is contained in:
jaeaster 2022-10-01 16:51:51 +01:00 committed by GitHub
parent b2fc9fdf50
commit f3a5a7aef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -250,7 +250,7 @@ impl Anvil {
let mut child = cmd.spawn().expect("couldnt start anvil");
let stdout = child.stdout.expect("Unable to get stdout for anvil child process");
let stdout = child.stdout.take().expect("Unable to get stdout for anvil child process");
let start = Instant::now();
let mut reader = BufReader::new(stdout);
@ -284,8 +284,6 @@ impl Anvil {
}
}
child.stdout = Some(reader.into_inner());
AnvilInstance { pid: child, private_keys, addresses, port, chain_id: self.chain_id }
}
}