From cd56fe0754bc351eaaa4e50532ff7c4a8202177e Mon Sep 17 00:00:00 2001 From: Bjerg Date: Fri, 17 Nov 2023 17:18:39 +0100 Subject: [PATCH] fix: `TransportResult` for multi wallet (#6343) --- 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![];