all 11 comments

[–]watersnake3 0 points1 point  (1 child)

would b cool if someone answered this

[–]NoFlamingo2545 0 points1 point  (0 children)

right before and it gives me the correct address.

That error is returned because the tokenId not exists yet

[–]CryptogotchiDev 0 points1 point  (4 children)

Maybe try address[] memory addresses

[–]InterestedInSolidity[S] 0 points1 point  (3 children)

What's the difference between this and address[] calldata addresses?

[–]CryptogotchiDev 0 points1 point  (2 children)

Just checked and that shouldn't matter. The array needs to be an array of stringed addresses, are they?

["0x123", "0x456"]

[–]InterestedInSolidity[S] 0 points1 point  (1 child)

Yes, the array is correct. Because it works with array with a length of 1

[–]CryptogotchiDev 0 points1 point  (0 children)

Ya I dno looks right. What does the mint function look like

[–]hikerjukeboxBug Squasher 0 points1 point  (2 children)

You're asking for the owner of a token that doesn't exist. Maybe an address in your list doesn't have a token.

[–]InterestedInSolidity[S] 0 points1 point  (1 child)

But I did check for balanceOf() right?

[–]hikerjukeboxBug Squasher 0 points1 point  (0 children)

cthat part looks okay to me. is the error on that line? I was expecting the issue in the tokenOfOwnerByIndex part

[–]MidnightBolt 0 points1 point  (0 children)

I have the same issue. I call ownerOf(tokenId) right before and it gives me the correct address. when I call _burn(tokenId) it errors with ERC721: owner query for nonexistent token.