I'm trying to do
abi.encodeWithSignature(
"mint(address, string **memory**)",
receiverAddress,
tokenURI
)
The function definition is like this:
function mint(address to, string memory tokenURI) public {
_safeMint(to, tokenId);
_setTokenURI(tokenId, tokenURI);
unchecked {
tokenId++;
}
}
Do I need to add memory keyword while encoding or not? It will be a great help if someone can explain me that. Thanks in advance.