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

Commit

Permalink
chore: rename vars
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed May 8, 2022
1 parent 3aac3e3 commit 1f606eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ethers-contract/tests/abigen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,9 @@ fn can_handle_overloaded_events() {
async fn can_send_struct_param() {
abigen!(StructContract, "./tests/solidity-contracts/StructContract.json");

let anvil = Ganache::default().spawn();
let wallet: LocalWallet = anvil.keys()[0].clone().into();
let provider = Provider::try_from(anvil.endpoint()).unwrap();
let server = Ganache::default().spawn();
let wallet: LocalWallet = server.keys()[0].clone().into();
let provider = Provider::try_from(server.endpoint()).unwrap();
let client = Arc::new(SignerMiddleware::new(provider, wallet));

let contract = StructContract::deploy(client, ()).unwrap().legacy().send().await.unwrap();
Expand Down

0 comments on commit 1f606eb

Please sign in to comment.