ERC721Full.sol not found in OpenZeppelin Contracts v3.x?

Hi everybody,

I am getting started with the openzeppelin ERC721 Tutorials (https://docs.openzeppelin.com/contracts/2.x/erc721) - however, when I want to import ERC721Full.sol it doesn’t exist in my …/node_modules/@openzeppelin/contracts/token/ERC721 folder.

I can compile a simple “Box.sol” contract but I also don’t find ERC721Full.sol in the github under https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC721?

1 Like

Hi @some_guy,

In OpenZeppelin Contracts v3.x ERC721Full was included in the base contract ERC721.

https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v3.0.0
If you're using the ERC20 or ERC721 tokens however, you'll have to remove all references to optional extensions ( ERC20Detailed , ERC721Enumerable , etc.) - these have been included in the base contracts.

If you want to use OpenZeppelin Contracts 2 you can install using @openzeppelin/contracts@2.5.1.

If you want to use OpenZeppelin Contracts 3 you can install using
@openzeppelin/contracts

The documentation for OpenZeppelin Contracts 3 is https://docs.openzeppelin.com/contracts/3.x/erc721#constructing_an_erc721_token_contract

I have a work in progress tutorial that you could also look at: Create an NFT and deploy to a public testnet, using Truffle

Hi @some_guy,

Just checking if you are up and running using either OpenZeppelin Contracts 2.x or OpenZeppelin Contracts 3.x?

Hi @abcoathup,

Many thanks for your kind reply and sorry for my late response - will check it in the next days and let you know!

1 Like

A post was split to a new topic: Error with ERC721 tutorial: Cannot create instance of ERC721PresetMinterPauserAutoId