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

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

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