示例#1
0
        public TokensList?AddressTokens(AddressTokens addressTokens)
        {
            var publicKey = AddressUtils.GetPublicKeyFromAddr(addressTokens.Owner).Bytes;

            return(_nftClient.MakeCallWithReconnect(application =>
                                                    application.GetStorageObject <TokensList, DoubleMapKey <ulong, byte[]> >(
                                                        DoubleMapKey.Create(addressTokens.CollectionId, publicKey), Module,
                                                        AddressTokensStorage), _nftClient.Settings.MaxReconnectCount));
        }
示例#2
0
 private static DoubleMapKey <ulong, ulong> StorageKey(ItemKey key)
 {
     return(DoubleMapKey.Create(key.CollectionId, key.ItemId));
 }