Published on

Solution for “Error HH700: Artifact for contract ”@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol:ERC721Enumerable” not found”

Problem: When attempting to deploy Solidity contracts to a local Hardhat node, the process is blocked by this error:

$ npx hardhat run scripts/deploy.js --network localhost

Error HH700: Artifact for contract "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol:ERC721Enumerable" not found.

Solution: This error could be due to the ERC721Enumerable contract not being imported in one of your Solidity contracts. To solve it add the following import statement to any Solidity contract file that requires it:

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

Conclusion

Thanks for reading this blog post!

If you have any questions or concerns please feel free to post a comment in this post and I will get back to you when I find the time.

If you found this article helpful please share it and make sure to follow me on Twitter and GitHub, connect with me on LinkedIn and subscribe to my YouTube channel.