Show better exception for empty fingerprint.
MODIFY
WalletWasabi/Hwi/Models/HardwareWalletInfo.cs
WalletWasabi/Hwi/Models/HardwareWalletInfo.cs
using System;
using System.Collections.Generic;
using System.Text;
+using WalletWasabi.Helpers;
namespace WalletWasabi.Hwi.Models
{
public class HardwareWalletInfo
{
- public HardwareWalletInfo(string fingerprint, string serialNumber, HardwareWalletType type, string path, string error)
+ public HardwareWalletInfo(string masterFingerprint, string serialNumber, HardwareWalletType type, string path, string error)
{
- MasterFingerprint = new HDFingerprint(ByteHelpers.FromHex(fingerprint));
+ Guard.NotNullOrEmptyOrWhitespace(nameof(masterFingerprint), masterFingerprint);
+ var masterFingerPrintBytes = ByteHelpers.FromHex(masterFingerprint);
+ MasterFingerprint = new HDFingerprint(masterFingerPrintBytes);
SerialNumber = serialNumber;
Type = type;
Path = path;

Show better exception for empty fingerprint.