diff --git a/Lib9c/Addresses.cs b/Lib9c/Addresses.cs index f5881717af..d544d61e57 100644 --- a/Lib9c/Addresses.cs +++ b/Lib9c/Addresses.cs @@ -4,6 +4,7 @@ using System.Security.Cryptography; using Libplanet.Common; using Libplanet.Crypto; +using Libplanet.Types.Assets; using Nekoyume.Action; using Nekoyume.Model.State; using Nekoyume.TableData; @@ -96,6 +97,8 @@ public static Address GetGuildBanAccountAddress(Address guildAddress) => #endregion + public static Address GetAccountAddress(Currency currency) => new(currency.Hash.ToByteArray()); + public static Address GetSheetAddress() where T : ISheet => GetSheetAddress(typeof(T).Name); public static Address GetSheetAddress(string sheetName) => TableSheet.Derive(sheetName);