Unverified Commit 28986d2f by Tim Daubenschütz Committed by GitHub

Start tokenId at zero in docs (#3162)

- Fixes #3123
parent 85566fae
......@@ -30,12 +30,11 @@ contract GameItem is ERC721URIStorage {
public
returns (uint256)
{
_tokenIds.increment();
uint256 newItemId = _tokenIds.current();
_mint(player, newItemId);
_setTokenURI(newItemId, tokenURI);
_tokenIds.increment();
return newItemId;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment