Skip to content

Commit

Permalink
change next_item_index from uint64 to int64
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhar-petukhov committed Sep 12, 2024
1 parent 73c7c54 commit 19fb114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/core/nft.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type NftItem struct {

type NftCollection struct {
Address tongo.AccountID
NextItemIndex uint64
NextItemIndex int64
OwnerAddress *tongo.AccountID
ContentLayout int
CollectionContent []byte
Expand Down
2 changes: 1 addition & 1 deletion pkg/litestorage/nft.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 19fb114

Please sign in to comment.