ByteHelpers: Do not allow "null" value.
MODIFY
WalletWasabi/Helpers/ByteHelpers.cs
WalletWasabi/Helpers/ByteHelpers.cs
@@ -137,13 +137,8 @@ namespace System
/// <summary>
/// Fastest hex to byte array implementation in C#
/// </summary>
- public static byte[]? FromHex(string hex)
+ public static byte[] FromHex(string hex)
{
- if (hex is null)
- {
- return null;
- }
-
if (string.IsNullOrWhiteSpace(hex))
{
return Array.Empty<byte>();

ByteHelpers: Do not allow "null" value.

Signed-off-by: Kiminuo <kiminuo@protonmail.com>