Remove null possibility from test and HdPubKey ctor
MODIFY
WalletWasabi.Tests/UnitTests/KeyManagementTests.cs
WalletWasabi.Tests/UnitTests/KeyManagementTests.cs
@@ -145,9 +145,7 @@ public class KeyManagementTests
var manager = KeyManager.CreateNew(out _, password, network);
var k1 = manager.GenerateNewKey(SmartLabel.Empty, KeyState.Clean, true);
- var k2 = manager.GenerateNewKey(label: null!, KeyState.Clean, true);
Assert.Equal(SmartLabel.Empty, k1.Label);
- Assert.Equal(SmartLabel.Empty, k2.Label);
for (int i = 0; i < 1000; i++)
{

MODIFY
WalletWasabi/Blockchain/Keys/HdPubKey.cs
WalletWasabi/Blockchain/Keys/HdPubKey.cs
@@ -23,7 +23,7 @@ public class HdPubKey : NotifyPropertyChangedBase, IEquatable<HdPubKey>
PubKey = Guard.NotNull(nameof(pubKey), pubKey);
FullKeyPath = Guard.NotNull(nameof(fullKeyPath), fullKeyPath);
_cluster = new Cluster(this);
- Label = label ?? SmartLabel.Empty;
+ Label = label;
Cluster.UpdateLabels();
KeyState = keyState;

Remove null possibility from test and HdPubKey ctor