Verify contract on BSCscan: Error! Unable to generate Contract ByteCode and ABI

Compiler debug log:
Error! Unable to generate Contract ByteCode and ABI
Found the following ContractName(s) in source code : BEP20Token , Context , IBEP20 , Ownable , SafeMath
But we were unable to locate a matching bytecode (err_code_2)
Can you help me??? BSCAN BEP20 testnet
Contract Address: 0x2675d2a017186cd5fc2a12a5dfba7804fd877acb

1 Like

Hi @Mai_Hoang_Anh,

Welcome to the community :wave:

Assuming you have already flattened your contract, specified the correct version of Solidity compiler and whether optimization was enabled, you can encode your constructor parameters with https://abi.hashex.org/

If you get stuck please share your Solidity code.

hey, I was also stucked, but I found the way. Just flatten the contract and paste the flatten contract. it will work smoothly.

1 Like