'Create two different instances of ERC-721 in the same smart contract
So I want to create two different kind of NFTs, each one with its own name, but I don't want to create two different smart contracts and duplicate my code. I don't know if its possible, but it is worth asking. Sorry if it's an stupid question.
constructor(string memory _name, string memory _symbol) ERC721(_name, _symbol)
I instantiate it like this, so maybe it could be posible to instantiate two of them? idk. Thanks :)
Solution 1:[1]
When deploying the contract, you can just pass in a different name in the string memory _name field
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | NSA_Intern |
