Hi,
in OpenZeppelin's ERC721, can tokenId get the value 0?
I can't seem any generation of the tokenID nor assignment. It is always an input argument for functions
Jan 24, 2022, 1:02 PM
Yes
Jan 24, 2022, 1:03 PM
How come 0 can be an Id?
Jan 24, 2022, 1:04 PM
Tokenid is uint256 so it can be any unique number including 0.
Jan 24, 2022, 1:06 PM
i mean isn't it strange? 0 is a default value of uint256. so upon deployment every key in the mapping is 0
wont it create ambiguity?
Jan 24, 2022, 1:07 PM
No check erc721 contract first. And see how mapping is done
Jan 24, 2022, 1:13 PM