예제 #1
0
        private protected static CurrencyCode ToCurrencyCode(Hash160 hash)
        {
            Span <byte> bytes = stackalloc byte[20];

            hash.CopyTo(bytes);
            return(new CurrencyCode(bytes));
        }
예제 #2
0
        private protected static AccountId ToAccountId(Hash160 hash)
        {
            Span <byte> bytes = stackalloc byte[20];

            hash.CopyTo(bytes);
            return(new AccountId(bytes));
        }