fix: include change in melt quote state updates

This commit is contained in:
gudnuf
2025-07-14 06:56:40 -07:00
parent bc545fcd77
commit 21a32b6b0f

View File

@@ -755,13 +755,6 @@ impl Mint {
)
.await?;
self.pubsub_manager.melt_quote_status(
&quote,
payment_preimage.clone(),
None,
MeltQuoteState::Paid,
);
let mut change = None;
// Check if there is change to return
@@ -827,6 +820,13 @@ impl Mint {
}
}
self.pubsub_manager.melt_quote_status(
&quote,
payment_preimage.clone(),
change.clone(),
MeltQuoteState::Paid,
);
proof_writer.commit();
tx.commit().await?;