Skip to content

Commit e8bc02f

Browse files
wip
1 parent a562309 commit e8bc02f

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

  • cmd/soroban-cli/src/config

cmd/soroban-cli/src/config/mod.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,17 @@ impl Args {
8989

9090
#[allow(clippy::unused_async)]
9191
pub async fn sign(&self, tx: Transaction) -> Result<TransactionEnvelope, Error> {
92-
let key = self.key_pair()?;
92+
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()?;
9398
let network = &self.get_network()?;
94-
let signer = Signer {
95-
kind: SignerKind::Local(LocalKey { key }),
96-
print: Print::new(false),
97-
};
99+
// let signer = Signer {
100+
// kind: SignerKind::Local(LocalKey { key }),
101+
// print: Print::new(false),
102+
// };
98103
Ok(signer.sign_tx(tx, network).await?)
99104
}
100105

0 commit comments

Comments
 (0)