diff --git a/src/Libplanet.Types/Assets/Currency.cs b/src/Libplanet.Types/Assets/Currency.cs index 4f2e90d9916..8623cfc26c2 100644 --- a/src/Libplanet.Types/Assets/Currency.cs +++ b/src/Libplanet.Types/Assets/Currency.cs @@ -49,7 +49,7 @@ namespace Libplanet.Types.Assets [Serializable] public sealed class Currency : IEquatable, ISerializable { - private static Codec _codec = new Codec(); + private static readonly Codec _codec = new Codec(); private readonly (BigInteger Major, BigInteger Minor)? _maximumSupply; @@ -500,7 +500,6 @@ private static (BigInteger Major, BigInteger Minor)? ExtractMaximumSupply( throw new ArgumentException( $"The value associated with key \"minters\" should be either " + $"{nameof(List)} or {nameof(Null)}."); - } }