We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74fb8a3 commit b8a4dd3Copy full SHA for b8a4dd3
1 file changed
cmd/soroban-cli/src/config/mod.rs
@@ -89,12 +89,10 @@ impl Args {
89
90
#[allow(clippy::unused_async)]
91
pub async fn sign(&self, tx: Transaction) -> Result<TransactionEnvelope, Error> {
92
- let key = self.key_pair()?;
+ let key = &self.source_account.resolve_secret(&self.locator)?;
93
+ let signer = key.signer(self.hd_path, Print::new(false)).await?;
94
let network = &self.get_network()?;
- let signer = Signer {
95
- kind: SignerKind::Local(LocalKey { key }),
96
- print: Print::new(false),
97
- };
+
98
Ok(signer.sign_tx(tx, network).await?)
99
}
100
0 commit comments