Skip to content

Commit

Permalink
Merge branch 'master' into fix/forc-build
Browse files Browse the repository at this point in the history
  • Loading branch information
Halimao authored Jan 11, 2024
2 parents 14f0ced + e7a592b commit 196f801
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion forc-plugins/forc-client/src/util/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,16 @@ impl<Tx: Buildable + field::Witnesses + Send> TransactionBuilderExt<Tx> for Tran
);
let password = rpassword::prompt_password(prompt)?;
let verification = AccountVerification::Yes(password.clone());
let accounts = collect_accounts_with_verification(&wallet_path, verification)?;
let accounts = collect_accounts_with_verification(&wallet_path, verification)
.map_err(|e| {
if e.to_string().contains("Mac Mismatch") {
anyhow::anyhow!(
"Failed to access forc-wallet vault. Please check your password"
)
} else {
e
}
})?;
let account_balances = collect_account_balances(&accounts, &provider).await?;

let total_balance = account_balances
Expand Down

0 comments on commit 196f801

Please sign in to comment.