Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions orange-sdk/src/trusted_wallet/cashu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,15 +730,17 @@ impl Cashu {
},
},
None => {
debug_assert!(
false,
"Melt succeeded but no preimage for quote: {quote_id}"
);
log_error!(
// Expected for same-mint payments: when the melt's
// bolt11 destination is a mint quote on this same
// mint, cdk-mintd settles internally — no Lightning
// payment occurs, so there is no preimage to return.
// The success path below already tolerates None
// (hash falls back to the invoice payment_hash).
log_info!(
logger,
"Melt succeeded but no preimage for quote: {quote_id}"
"Melt for quote {quote_id} settled without a preimage (internal/same-mint settlement)"
);
None // Placeholder, should not happen
None
},
};

Expand Down