Etherscan Verify - Error! Unable to generate Contract ByteCode and ABI

I have read through countless forum posts with the same error message for verifying. I have checked the solidity version, the optimization, I have flattened the contract, still the same error message.

Token address

See screenshots, code and links below. Any help appreciated!!!

Try to remove the (commented) line from your flattened file that specifies the SPDX-License-Identifier: MIT.
And/or try to remove all comments before pragma solidity..

I usually flatten the file, remove the first line, pass the code into etherscan with right settings and constructor arguments and then it works

Lemme know if it worked

1 Like

Thanks, I did try that and I when I remove the License Identifier, this error comes up as well:

Here is the token code: https://github.com/qooie/qooietoken/blob/main/qooietoken_flattened

It compiles fine on solidity. Just keep getting the Bytecode and ABI error