fix: restore LNURL.getPayRequestAmount signature (dev compile break) (#3753)
What changed, and why it matters
This commit fixes a simple Dart programming mistake where a method declaration line was accidentally deleted, causing the app code to fail compilation. It restores the missing line so the method works again. There is no security issue here—just a build break on the development branch.
No security action needed. Treat as a normal development branch build fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
A prior commit (2caafc677) accidentally removed the signature line static Future<Money?> getPayRequestAmount(String lnurl) async { in cw_core/lib/lnurl.dart, leaving the method body orphaned inside the LNURL class. This caused a parse error (Expected a class member) from mobx_codegen and broke compilation for apps, unit tests, and CI jobs. The patch adds back the single missing signature line. It is a pure compile-fix with no functional or security change.
Changed components
cw_core/lib/lnurl.dartInspect captured patch +1 / −0
### cw_core/lib/lnurl.dart
@@ -83,6 +83,7 @@ Money? getBolt11Amount(String invoice) {
}
class LNURL {
+ static Future<Money?> getPayRequestAmount(String lnurl) async {
final url = decode(lnurl);
final response =
await ProxyWrapper().get(clearnetUri: url).timeout(const Duration(seconds: 10));Why this scored 20/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.