From 75250a287a551c56d8db5cd652a6c636e35eb74a Mon Sep 17 00:00:00 2001 From: Willem Wyndham Date: Mon, 29 Jul 2024 11:51:53 -0400 Subject: [PATCH] fix: use signer with source account --- cmd/soroban-cli/src/config/mod.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cmd/soroban-cli/src/config/mod.rs b/cmd/soroban-cli/src/config/mod.rs index 7735c830e8..adc9965e6a 100644 --- a/cmd/soroban-cli/src/config/mod.rs +++ b/cmd/soroban-cli/src/config/mod.rs @@ -58,17 +58,9 @@ impl Args { } pub async fn sign(&self, tx: Transaction) -> Result { - Ok(self.sign_with.sign_txn(tx).await?) - } - - pub async fn sign_soroban_authorizations( - &self, - tx: &Transaction, - ledgers_from_current: u32, - ) -> Result, Error> { Ok(self .sign_with - .sign_soroban_authorizations(tx, ledgers_from_current) + .sign_tx_env_with_signer(&self.signer()?, tx.into()) .await?) }