Hi all!
I am working with your fantastic ERC721 contracts but have a little doubt.
Calling the native SafeMint function, the Etherscan.io transactions list is showing "Safe Mint" as Method
function safeMint(address to, uint256 tokenId) public {
_safeMint(to, tokenId);
}
Too I can add a data string as parameter and all works.
But if I add multiple strings parameters the Etherscan transactions list not show "Safe Mint" as Method anymore.
function safeMint(address to, uint256 tokenId, string memory data) public {
_safeMint(to, tokenId);
}
I have tried the following and it doesn't work:
function safeMint(address to, uint256 tokenId, string memory data, string memory data2) public {
_safeMint(to, tokenId);
}
and
string Data="data";
function PreMint(uint256 tokenId, string memory _data) public {
Data = _data;
safeMint(tokenId, _data);
}
function safeMint(uint256 tokenId, string memory _data) public {
_safeMint(msg.sender, tokenId);
}
I need to send multiple string parameters to the ERC721 contract when an NFT is minted.
How could I do it keeping the "Safe Mint" label on Etherscan transactions list?
Thanks !!!