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)); }
private static DoubleMapKey <ulong, ulong> StorageKey(ItemKey key) { return(DoubleMapKey.Create(key.CollectionId, key.ItemId)); }