From 7dc08fbcd87c6de8b4b51b8f97bd9109b9d5c3ea Mon Sep 17 00:00:00 2001 From: Oliver Nordbjerg Date: Fri, 17 Nov 2023 17:15:56 +0100 Subject: [PATCH] fix: `TransportResult` for multi wallet --- crates/cli/src/opts/wallet/multi_wallet.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/cli/src/opts/wallet/multi_wallet.rs b/crates/cli/src/opts/wallet/multi_wallet.rs index 8abc0a138cac..9c2ff7312c52 100644 --- a/crates/cli/src/opts/wallet/multi_wallet.rs +++ b/crates/cli/src/opts/wallet/multi_wallet.rs @@ -220,12 +220,7 @@ impl MultiWallet { script_wallets: &[LocalWallet], ) -> Result> { println!("\n###\nFinding wallets for all the necessary addresses..."); - let chain = provider - .get_chain_id() - .await - .success() - .ok_or_else(|| eyre::eyre!("could not fetch chain id"))? - .to(); + let chain = provider.get_chain_id().await.wrap_err("could not fetch chain id")?.to(); let mut local_wallets = HashMap::new(); let mut unused_wallets = vec![];