OpenZepplin Contract Wizard ERC1155


I am trying to develop an ERC1155 smart contract using the OpenZepplin contract wizard.
I use the wizard to create the ERC1155 in Solidity and then open it in Remix.

When I get try to compile it I get the following error message below.

DeclarationError: Identifier already declared.
--> contract-e054e3a16b.sol:6:1:
6 | contract ERC1155 is ERC1155 { constructor() ERC1155("")
| ^ (Relevant source part starts here and spans across multiple lines).
Note: The previous declaration is here:
--> contract-e054e3a16b.sol:4:1:
4 | import "@openzeppelin/contracts@4.8.1/token/ERC1155/ERC1155.sol";
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Any help with this would be greatly appreciated. I have successfully used the Wizard for ERC20 and ERC721 in the same way.


You need to configure your Remix import path correctly.

try renaming your contract

Thanks Barakman and FreezyEx for your replys.

It looked like an issue with the Github path.

If I cut and paste the code into remix rather than using than use the copy clipboard or open in remix it compiled nicely.