We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a562309 commit e8bc02fCopy full SHA for e8bc02f
1 file changed
cmd/soroban-cli/src/config/mod.rs
@@ -89,12 +89,17 @@ 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 print = Print::new(false);
94
+ let signer = key.signer(self.hd_path, print).await.unwrap(); // todo: handle unwrap!
95
+
96
97
+ // let key = self.key_pair()?;
98
let network = &self.get_network()?;
- let signer = Signer {
- kind: SignerKind::Local(LocalKey { key }),
- print: Print::new(false),
- };
99
+ // let signer = Signer {
100
+ // kind: SignerKind::Local(LocalKey { key }),
101
+ // print: Print::new(false),
102
+ // };
103
Ok(signer.sign_tx(tx, network).await?)
104
}
105
0 commit comments