Fix nullability errors
MODIFY
WalletWasabi.Tests/UnitTests/Crypto/BlindingTests.cs
WalletWasabi.Tests/UnitTests/Crypto/BlindingTests.cs
@@ -32,7 +32,7 @@ namespace WalletWasabi.Tests.UnitTests.Crypto
var str = unblindedSignature.ToString();
Assert.True(UnblindedSignature.TryParse(str, out var unblindedSignature2));
- Assert.Equal(unblindedSignature.C, unblindedSignature2.C);
+ Assert.Equal(unblindedSignature.C, unblindedSignature2!.C);
Assert.Equal(unblindedSignature.S, unblindedSignature2.S);
str += "o";
Assert.False(UnblindedSignature.TryParse(str, out _));

MODIFY
WalletWasabi/JsonConverters/UnblindedSignatureJsonConverter.cs
WalletWasabi/JsonConverters/UnblindedSignatureJsonConverter.cs
@@ -16,7 +16,7 @@ namespace WalletWasabi.JsonConverters
}
/// <inheritdoc />
- public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
+ public override object ReadJson(JsonReader reader, Type? objectType, object? existingValue, JsonSerializer? serializer)
{
JArray arr = JArray.Load(reader);
@@ -45,7 +45,7 @@ namespace WalletWasabi.JsonConverters
}
/// <inheritdoc />
- public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
+ public override void WriteJson(JsonWriter writer, object value, JsonSerializer? serializer)
{
var signature = (UnblindedSignature)value;
var c = new BigInteger(signature.C.ToBytes(), isUnsigned: true, isBigEndian: true);

Fix nullability errors