From 3b2aa955d020e2fe227712a5aa347a3a5267e716 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Sat, 30 Oct 2021 14:12:42 +0300 Subject: [PATCH] test(middleware): get rinkeby private key from env var (#542) --- ethers-middleware/tests/nonce_manager.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethers-middleware/tests/nonce_manager.rs b/ethers-middleware/tests/nonce_manager.rs index bec24666..e61759b0 100644 --- a/ethers-middleware/tests/nonce_manager.rs +++ b/ethers-middleware/tests/nonce_manager.rs @@ -14,7 +14,8 @@ async fn nonce_manager() { .interval(Duration::from_millis(2000u64)); let chain_id = provider.get_chainid().await.unwrap().as_u64(); - let wallet = "fa4a1a79e869a96fcb42727f75e3232d6865a82ea675bb95de967a7fe6a773b2" + let wallet = std::env::var("RINKEBY_PRIVATE_KEY") + .unwrap() .parse::() .unwrap() .with_chain_id(chain_id);