Skip to content

Commit 653d929

Browse files
Fix typo + small cleanup
1 parent 31b24a3 commit 653d929

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

Src/FinderOuter/Backend/ConstantsFO.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,30 +46,30 @@ public struct ConstantsFO
4646
public const int Bip38ByteLen = 39;
4747
public const int Bip38Base58Len = 58;
4848
public const string Bip38Start = "6P";
49-
public static readonly byte[] Bip38Prefix = new byte[2] { 0x01, 0x42 };
50-
public static readonly byte[] Bip38PrefixECMult = new byte[2] { 0x01, 0x43 };
49+
public static readonly byte[] Bip38Prefix = [0x01, 0x42];
50+
public static readonly byte[] Bip38PrefixECMult = [0x01, 0x43];
5151

52-
public static readonly string ChangedMessage = "Input is changed and the search-space needs to re-evaluated." +
52+
public static readonly string ChangedMessage = "Input is changed and the search-space needs to be re-evaluated." +
5353
$"{Environment.NewLine}" +
5454
$"Click Yes to reset search-space to use default values or click No to manually set search-space.";
5555

5656
// 123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz
57-
public static readonly char[][] SimilarBase58Chars = new char[][]
58-
{
59-
new char[] { '0', 'o', 'C', 'G', 'c' },
60-
new char[] { '1', 'L', 'l' },
61-
new char[] { '5', 'S', 's' },
62-
new char[] { '7', 'J', 'T', 'j', 't', 'I', 'i' },
63-
new char[] { '8', 'B' },
64-
new char[] { '9', 'g', 'q', 'P', 'p', 'D', 'd', 'b' },
65-
new char[] { 'E', 'F', 'f' },
66-
new char[] { 'K', 'k' },
67-
new char[] { 'M', 'm' },
68-
new char[] { 'N', 'n' },
69-
new char[] { 'U', 'u', 'V', 'v', 'Y', 'y' },
70-
new char[] { 'W', 'w' },
71-
new char[] { 'X', 'x' },
72-
new char[] { 'Z', 'z' },
73-
};
57+
public static readonly char[][] SimilarBase58Chars =
58+
[
59+
['0', 'o', 'C', 'G', 'c'],
60+
['1', 'L', 'l'],
61+
['5', 'S', 's'],
62+
['7', 'J', 'T', 'j', 't', 'I', 'i'],
63+
['8', 'B'],
64+
['9', 'g', 'q', 'P', 'p', 'D', 'd', 'b'],
65+
['E', 'F', 'f'],
66+
['K', 'k'],
67+
['M', 'm'],
68+
['N', 'n'],
69+
['U', 'u', 'V', 'v', 'Y', 'y'],
70+
['W', 'w'],
71+
['X', 'x'],
72+
['Z', 'z'],
73+
];
7474
}
7575
}

0 commit comments

Comments
 (0)