feat(funds): keep the claimable note of a pending named transfer

An unknown-still-pending transfer to a named mint carries the note at the
wallet's own secret in its claim material - persist it unverified like the
settled-claim-failed path already does, instead of dropping it with the
result object.
This commit is contained in:
2026-08-31 12:22:56 +02:00
parent 67b2122e52
commit c9963934aa
+6
View File
@@ -170,6 +170,12 @@ export const useMoveFundsPage = () => {
); );
} else if (transfer.outcome === 'unknown-still-pending') { } else if (transfer.outcome === 'unknown-still-pending') {
await wallet.markSpent(carved.id, ownerFence); await wallet.markSpent(carved.id, ownerFence);
// a named target's claim material carries the note at the wallet's
// own secret - claimable the moment the melt settles, so it is
// tracked unverified rather than lost with the result object
if (transfer.claimMaterial?.note) {
await addCommittedBearers(wallet, [transfer.claimMaterial.note], commitContext);
}
await activity.log( await activity.log(
'transfer', 'transfer',
`A move of ${sats.toLocaleString()} sats to ${transfer.targetServer} is still in flight - the note is locked.`, `A move of ${sats.toLocaleString()} sats to ${transfer.targetServer} is still in flight - the note is locked.`,