Explorar o código

Update ERC721 guide for 4.0 (#2630)

Zachary %!s(int64=4) %!d(string=hai) anos
pai
achega
538b6d21b1
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      docs/modules/ROOT/pages/erc721.adoc

+ 2 - 1
docs/modules/ROOT/pages/erc721.adoc

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