From 19fb11461375fb0f9a3030d59c82b4ac49f67fbd Mon Sep 17 00:00:00 2001 From: Zakhar Petukhov Date: Thu, 12 Sep 2024 19:25:16 +0800 Subject: [PATCH] change next_item_index from uint64 to int64 --- pkg/core/nft.go | 2 +- pkg/litestorage/nft.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/core/nft.go b/pkg/core/nft.go index 176745c9..66dd6995 100644 --- a/pkg/core/nft.go +++ b/pkg/core/nft.go @@ -25,7 +25,7 @@ type NftItem struct { type NftCollection struct { Address tongo.AccountID - NextItemIndex uint64 + NextItemIndex int64 OwnerAddress *tongo.AccountID ContentLayout int CollectionContent []byte diff --git a/pkg/litestorage/nft.go b/pkg/litestorage/nft.go index d869ea89..66591b37 100644 --- a/pkg/litestorage/nft.go +++ b/pkg/litestorage/nft.go @@ -64,7 +64,7 @@ func (s *LiteStorage) GetNftCollectionByCollectionAddress(ctx context.Context, a OwnerAddress: accountID, CollectionContent: rawContent, ContentLayout: int(fullContent.Layout), - NextItemIndex: g.Pointer(big.Int(source.NextItemIndex)).Uint64(), + NextItemIndex: g.Pointer(big.Int(source.NextItemIndex)).Int64(), } if fullContent.Layout == tep64.OffChain { meta, err := core.GetNftMetaData(string(fullContent.Data))