fix restoring from QR
OmarHatem committed
Dec 11, 2025 at 17:14 UTC
13a56574f4b97bafa2bc37ca94888cec28d82413
1 file changed
+3
-1
lib/view_model/restore/restore_wallet.dart
+3
-1
@@ -58,7 +58,9 @@ class RestoredWallet {
58
if (json['zpub'] != null) {
59
json['xpub'] = convertZpubToXpub(json['zpub'] as String);
60
}
61
- json['xpub'] = convertAnyToXpub(json['xpub'] as String);
61
+ if (json['xpub'] != null) {
62
+ json['xpub'] = convertAnyToXpub(json['xpub'] as String);
63
+ }
64
json['view_key'] ??= json['xpub'];
65
final height = json['height'] as String?;
66
return RestoredWallet(