mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix restoring from QR
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user