added lightning prefix in profile adds

This commit is contained in:
Vishal
2022-12-27 12:41:35 +05:30
parent e11c374d66
commit 44ffb62c05
2 changed files with 4 additions and 3 deletions

View File

@@ -335,20 +335,20 @@ void printProfile(Store node, String profilePubkey) {
List<int>? typesAndModule = getTypeAndModule(lud06);
if( typesAndModule != null) {
print("Printing lud06 LNURL as QR:\n\n");
print(getPubkeyAsQrString(lud06, typesAndModule[0], typesAndModule[1]));
print(getPubkeyAsQrString("lightning:" + lud06, typesAndModule[0], typesAndModule[1]));
}
} catch(e) {
print("Could not generate qr code for the lnurl given. \n");
}
}
// print LNRUL lud06 if it exists
// print LNRUL lud16 if it exists
if( lud16.length > gMinLud06AddressLength) {
try {
List<int>? typesAndModule = getTypeAndModule(lud16);
if( typesAndModule != null) {
print("Printing lud16 address as QR:\n\n");
print(getPubkeyAsQrString(lud16, typesAndModule[0], typesAndModule[1]));
print(getPubkeyAsQrString("lightning:" + lud16, typesAndModule[0], typesAndModule[1]));
}
} catch(e) {
print("Could not generate qr code for the given address.\n");