mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-05 05:06:14 +01:00
refactor(wallet): send returns token string
This commit is contained in:
@@ -660,9 +660,10 @@ impl Wallet {
|
||||
&mut self,
|
||||
mint_url: &UncheckedUrl,
|
||||
unit: &CurrencyUnit,
|
||||
memo: Option<String>,
|
||||
amount: Amount,
|
||||
conditions: Option<SpendingConditions>,
|
||||
) -> Result<Proofs, Error> {
|
||||
) -> Result<String, Error> {
|
||||
let input_proofs = self.select_proofs(mint_url.clone(), unit, amount).await?;
|
||||
|
||||
let active_keyset_id = self.active_mint_keyset(mint_url, unit).await?;
|
||||
@@ -737,7 +738,9 @@ impl Wallet {
|
||||
.add_proofs(mint_url.clone(), keep_proofs)
|
||||
.await?;
|
||||
|
||||
Ok(send_proofs)
|
||||
Ok(self
|
||||
.proofs_to_token(mint_url.clone(), send_proofs, memo, Some(unit.clone()))?
|
||||
.to_string())
|
||||
}
|
||||
|
||||
/// Melt Quote
|
||||
|
||||
Reference in New Issue
Block a user