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

Commit

Permalink
chore: use ganache chain id
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed May 8, 2022
1 parent 1f606eb commit 9525101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethers-contract/tests/abigen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use ethers_core::{
};
use ethers_middleware::SignerMiddleware;
use ethers_providers::{MockProvider, Provider};
use ethers_signers::LocalWallet;
use ethers_signers::{LocalWallet, Signer};
use ethers_solc::Solc;
use std::{convert::TryFrom, sync::Arc};

Expand Down Expand Up @@ -577,7 +577,7 @@ async fn can_send_struct_param() {
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 client = Arc::new(SignerMiddleware::new(provider, wallet.with_chain_id(1337)));

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

Expand Down

0 comments on commit 9525101

Please sign in to comment.