I'm trying to verify the contract on polygonscan(etherscan) using the truffle run verify command. What contract name do I use while trying to verify the contract we deployed above. The only contract I see is Migrations.sol which is not the minter contract.
Here's what I've tried so far:
$ truffle run verify ERC721PresetMinterPauserAutoId --network mumbai
Verifying ERC721PresetMinterPauserAutoId
Unexpected token u in JSON at position 0
Failed to verify 1 contract(s): ERC721PresetMinterPauserAutoId
It seems like there is something wrong with your contract file, it has some illegal characters, I think you can format your contract to clear them, or just copy your code to another new file. I am not sure.