Unverified Commit 538b6d21 by Zachary Committed by GitHub

Update ERC721 guide for 4.0 (#2630)

parent 3157aff8
...@@ -17,9 +17,10 @@ Here's what a contract for tokenized items might look like: ...@@ -17,9 +17,10 @@ Here's what a contract for tokenized items might look like:
pragma solidity ^0.8.0; pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/utils/Counters.sol";
contract GameItem is ERC721 { contract GameItem is ERC721URIStorage {
using Counters for Counters.Counter; using Counters for Counters.Counter;
Counters.Counter private _tokenIds; Counters.Counter private _tokenIds;
......
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