Skip to content

Commit 801fbe7

Browse files
authored
Merge pull request #1055 from synonymdev/codex/lnurl-pay-error-cleanup
fix: narrow LNURL-pay error mapping
2 parents d25de50 + 33a4bbd commit 801fbe7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/src/main/java/to/bitkit/repositories/LightningRepo.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,8 +1732,7 @@ private fun Throwable.toLnurlPayInvoiceError(): Throwable {
17321732

17331733
private fun Throwable.isLnurlPayValidationError(): Boolean = when (this) {
17341734
is LnurlException.InvalidAmount,
1735-
is LnurlException.AmountMismatch,
1736-
is LnurlException.MetadataMismatch -> true
1735+
is LnurlException.AmountMismatch -> true
17371736

17381737
else -> false
17391738
}

0 commit comments

Comments
 (0)