Skip to content

Commit

Permalink
fix(create:zk): avoid initializing signer twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Karrq committed Oct 16, 2024
1 parent 9221adf commit 3653a8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/forge/bin/cmd/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ impl CreateArgs {
.await
} else {
// Deploy with signer
let signer = self.eth.wallet.signer().await?;
// Avoid initializing `signer` twice as it will error out with Ledger
// and potentailly other devices that rely on HID too
let zk_signer = self.eth.wallet.signer().await?;
let deployer = signer.address();
let deployer = zk_signer.address();
let provider = ProviderBuilder::<_, _, AnyNetwork>::default()
.wallet(EthereumWallet::new(signer))
.on_provider(provider);
self.deploy_zk(
abi,
Expand Down

0 comments on commit 3653a8d

Please sign in to comment.