I am trying to understand how to use the ERC721 token. I want to change the function mint with a parameter of type uint256 to the parameter of type string and create a unique string, it's possible to replace uint256 tokenid to string ?.
Example:
UniqueString("test"); //good
And the next time when I call the function with the same string("test") we get an error.
function UniqueString(string tokenid) public{
_mint(msg.sender,tokenid);
}
My question is how to create a unique string with the erc721 token. Thanks in advance