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![];