fix: additional CodeRabbit review fixes

This commit is contained in:
Forte11Cuba
2026-02-10 18:04:30 -06:00
parent aef0eb414e
commit 10114445cd
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ class LnurlService {
if (pad && bits > 0) {
result.add((acc << (toBits - bits)) & maxv);
} else if (!pad && (bits >= fromBits || ((acc << (toBits - bits)) & maxv) != 0)) {
// Invalid padding
throw FormatException('Invalid padding in bech32 conversion');
}
return result;
+2 -2
View File
@@ -678,7 +678,7 @@ class _MeltScreenState extends State<MeltScreen> {
if (mounted) {
setState(() {
_isResolvingLnurl = false;
_errorMessage = 'Error LNURL: ${e.toString().replaceFirst('Exception: ', '')}';
_errorMessage = L10n.of(context)!.paymentError(e.toString().replaceFirst('Exception: ', ''));
});
}
}
@@ -710,7 +710,7 @@ class _MeltScreenState extends State<MeltScreen> {
if (mounted) {
setState(() {
_isResolvingLnurl = false;
_errorMessage = 'Error: ${e.toString().replaceFirst('Exception: ', '')}';
_errorMessage = L10n.of(context)!.paymentError(e.toString().replaceFirst('Exception: ', ''));
});
}
}