Skip to content

Commit

Permalink
Use resolve_muxed_account in resolve_secret
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Dec 3, 2024
1 parent dabbb27 commit d9131b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/config/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ impl Address {

pub fn resolve_secret(&self, locator: &locator::Args) -> Result<secret::Secret, Error> {
match &self {
Address::MuxedAccount(muxed_account) => Err(Error::CannotSign(muxed_account.clone())),
Address::AliasOrSecret(alias) => Ok(locator.read_identity(alias)?),
a => Err(Error::CannotSign(a.resolve_muxed_account(locator, None)?)),
}
}
}
Expand Down

0 comments on commit d9131b4

Please sign in to comment.