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

Commit

Permalink
test(middleware): get rinkeby private key from env var (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored Oct 30, 2021
1 parent e71fa21 commit 3b2aa95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethers-middleware/tests/nonce_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<LocalWallet>()
.unwrap()
.with_chain_id(chain_id);
Expand Down

0 comments on commit 3b2aa95

Please sign in to comment.