Throw exception when wallet has no fingerprint
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/LoadWalletViewModel.cs
@@ -477,6 +477,10 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
await EnumerateHardwareWalletsAsync();
selectedWallet = Wallets.FirstOrDefault(x => x.HardwareWalletInfo.Model == selectedWallet.HardwareWalletInfo.Model && x.HardwareWalletInfo.Path == selectedWallet.HardwareWalletInfo.Path);
}
+ if (!selectedWallet.HardwareWalletInfo.Fingerprint.HasValue)
+ {
+ throw new InvalidOperationException("Wallet doesn't contain the fingerprint.");
+ }
KeyManager.CreateNewHardwareWalletWatchOnly(selectedWallet.HardwareWalletInfo.Fingerprint.Value, extPubKey, path);
}
}

Throw exception when wallet has no fingerprint