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