I deployed an ERC20/BEP20 token on binance smart chain using truffle
and openzepplin
. Now I want to verify this smart contract but I have some issues.
$ truffle run verify MyToken --network bsc
Verifying MyToken
Unable to process the standard-input-json you uploaded
Failed to verify 1 contract(s): MyToken
Let's try another way:
$ npx truffle-flattener ./contracts/MyToken.sol > ./contracts/token/FlatMyToken.sol
After copy/paste the output code into the bscscan I receive this error:
ParserError: Multiple SPDX license identifiers found in source file. Use "AND" or "OR" to combine multiple licenses. Please see https://spdx.org for more information.
--> myc
Using the second method, when I delete the relevant lines, the bytecode changes!
These methods do not work for me.