|
|
@@ -144,6 +144,7 @@ impl Wallet {
|
|
|
proofs: Proofs,
|
|
|
metadata: HashMap<String, String>,
|
|
|
) -> Result<Melted, Error> {
|
|
|
+ let active_keyset_id = self.fetch_active_keyset().await?.id;
|
|
|
let mut tx = self.localstore.begin_db_transaction().await?;
|
|
|
let mut quote_info = tx
|
|
|
.get_melt_quote(quote_id)
|
|
|
@@ -169,8 +170,6 @@ impl Wallet {
|
|
|
|
|
|
tx.update_proofs(proofs_info, vec![]).await?;
|
|
|
|
|
|
- let active_keyset_id = self.fetch_active_keyset().await?.id;
|
|
|
-
|
|
|
let change_amount = proofs_total - quote_info.amount;
|
|
|
|
|
|
let premint_secrets = if change_amount <= Amount::ZERO {
|