Commit c90ff2cb by github-actions

Merge upstream master into patched/master

parents a8e431c3 28986d2f
...@@ -30,12 +30,11 @@ contract GameItem is ERC721URIStorage { ...@@ -30,12 +30,11 @@ contract GameItem is ERC721URIStorage {
public public
returns (uint256) returns (uint256)
{ {
_tokenIds.increment();
uint256 newItemId = _tokenIds.current(); uint256 newItemId = _tokenIds.current();
_mint(player, newItemId); _mint(player, newItemId);
_setTokenURI(newItemId, tokenURI); _setTokenURI(newItemId, tokenURI);
_tokenIds.increment();
return newItemId; 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