From 13a56574f4b97bafa2bc37ca94888cec28d82413 Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Thu, 11 Dec 2025 17:14:32 +0200 Subject: [PATCH] fix restoring from QR --- lib/view_model/restore/restore_wallet.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/view_model/restore/restore_wallet.dart b/lib/view_model/restore/restore_wallet.dart index bd70fce34..bfa83725d 100644 --- a/lib/view_model/restore/restore_wallet.dart +++ b/lib/view_model/restore/restore_wallet.dart @@ -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(