HashLips / solidity_smart_contracts

A list of smart contracts coded in solidity
MIT License
599 stars 491 forks source link

compile NFT error #45

Closed SirSteven1 closed 2 years ago

SirSteven1 commented 2 years ago

Hello, I reported the following error when compiling with the NFT.sol file remix under the NFT file under your project DeclarationError: Identifier already declared.

--> demo/nftDemo.sol:22:1:
|
22 | contract NFT is ERC721Enumerable, Ownable{
| ^ (Relevant source part starts here and spans across multiple lines).
Note: The previous declaration is here:
--> demo/nftDemo.sol:20:1:
|
20 | import "@openzeppelin/contracts/access/Ownable.sol";
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^

I don't know how to deal with this