I'm quite new to solidity and NFTs. In many tutorials, including the official IPFS tutorial, i see something like this:
function mintToken(address owner, string memory metadataURI)
public
returns (uint256)
{
_tokenIds.increment();
uint256 id = _tokenIds.current();
_safeMint(owner, id);
_setTokenURI(id, metadataURI);
return id;
}
So if I understand it correctly anyone could call the mint function. Means everyone can put ANY url as the second parameter, right? So let's say somebody would abuse that an place any other image in the mint function, I would have this stored in my smart contract and would never be able to get rid of it? Am I right and is there a safe way? Didn't find something about that.