I have a doubt wich is if its possible to have different mint functions pointing to different tokenURI.
Lets say i have 2 mint functions and 2 variables called tokenURI1 and TokenURI2 just like this:
String tokenURI1 = ipfs://test1;
String TokenURI2 = ipfs://test2;
function mint1(uint256 _mintAmount) public payable {
_safeMint(_msgSender(),_mintAmount);
}
function mint2(uint256 _mintAmount) public payable {
_safeMint(_msgSender(),_mintAmount);
}
It is possible to if someone mint in the mint1
function that saves in the memory
the url of the tokenURI1
with that token, and if someones mint in the mint2
function that saves in the memory
the url of the tokenURI2
?
The idea of this is create multiple mint functions in just one smart contract with different images but remaining in the same collection.it is possible to do? how to do that?