fix restoring from QR

This commit is contained in:
OmarHatem
2025-12-11 17:14:32 +02:00
parent 89863e3bec
commit 13a56574f4
+3 -1
View File
@@ -58,7 +58,9 @@ class RestoredWallet {
if (json['zpub'] != null) {
json['xpub'] = convertZpubToXpub(json['zpub'] as String);
}
json['xpub'] = convertAnyToXpub(json['xpub'] as String);
if (json['xpub'] != null) {
json['xpub'] = convertAnyToXpub(json['xpub'] as String);
}
json['view_key'] ??= json['xpub'];
final height = json['height'] as String?;
return RestoredWallet(