feat(receive): accept named mints that serve no verify URL

Named mints claim through the wallet's own secret, so a missing LUD-21
verify URL no longer blocks receiving; unnamed mints still require it -
there the preimage it reveals IS the claim.
This commit is contained in:
2026-08-31 12:23:10 +02:00
parent ae5064b69a
commit 39a144cf50
+4 -1
View File
@@ -159,7 +159,10 @@ export const useReceiveLightningDialog = (
try { try {
const input = mintChoice.value === CUSTOM_MINT ? customMint.value.trim() : mintChoice.value; const input = mintChoice.value === CUSTOM_MINT ? customMint.value.trim() : mintChoice.value;
const next = await prepareMint(input, satsToMsat(sats)); const next = await prepareMint(input, satsToMsat(sats));
if (!next.verifyUrl) { // named mints claim through the wallet's own secret and may
// legitimately serve no verify URL; unnamed mints need one (the
// preimage it reveals IS the claim)
if (next.mode === 'unnamed' && !next.verifyUrl) {
formError.value = formError.value =
'This mint does not support automatic claiming, so sattle cannot receive from it. Choose a different mint.'; 'This mint does not support automatic claiming, so sattle cannot receive from it. Choose a different mint.';
return; return;