fix: additional CodeRabbit review fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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: ', ''));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user