Skip to content

Commit dbd387b

Browse files
committed
Update QueryAllParams.count to match WebGL behavior
1 parent dc834fe commit dbd387b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Assets/Thirdweb/Core/Scripts/ERC1155.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public async Task<List<NFT>> GetAll(QueryAllParams queryParams = null)
8686
{
8787
int totalCount = await TotalCount();
8888
int start = queryParams?.start ?? 0;
89-
int count = queryParams?.count + 1 ?? totalCount;
89+
int count = queryParams?.count ?? totalCount;
9090
int end = Math.Min(start + count, totalCount);
9191
List<NFT> allNfts = new();
9292
try

Assets/Thirdweb/Core/Scripts/ERC721.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public async Task<List<NFT>> GetAll(QueryAllParams queryParams = null)
8888
{
8989
int totalCount = await TotalCount();
9090
int start = queryParams?.start ?? 0;
91-
int count = queryParams?.count + 1 ?? totalCount;
91+
int count = queryParams?.count ?? totalCount;
9292
int end = Math.Min(start + count, totalCount);
9393
List<NFT> allNfts = new();
9494
try

Assets/Thirdweb/Examples/Prefabs/Prefab_NFTLoader.prefab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ MonoBehaviour:
396396
loadMultipleNfts:
397397
- contractAddress: 0x5350e0662D1BAB9f8843690B91C363aFD3e0cFe7
398398
startID: 0
399-
count: 2
399+
count: 3
400400
type: 0
401401
loadOwnedNfts:
402402
- contractAddress: 0x5350e0662D1BAB9f8843690B91C363aFD3e0cFe7

0 commit comments

Comments
 (0)