# Contract Wizard: Error! Unable to generate Contract ByteCode and ABI (General Exception, unable to get compiled \[bytecode\])

**URL:** <https://forum.openzeppelin.com/t/contract-wizard-error-unable-to-generate-contract-bytecode-and-abi-general-exception-unable-to-get-compiled-bytecode/28815>\
**Category:** Smart Contracts\
**Tags:** bep20, etherscan-verify\
**Created:** [May 17, 2022, 5:26pm UTC](https://forum.openzeppelin.com/t/contract-wizard-error-unable-to-generate-contract-bytecode-and-abi-general-exception-unable-to-get-compiled-bytecode/28815 "2022-05-17T17:26:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uypflo](https://avatars.discourse-cdn.com/v4/letter/u/e68b1a/32.png) [@Uypflo](https://forum.openzeppelin.com/u/Uypflo)\
**Post date:** [May 17, 2022, 5:26pm UTC](https://forum.openzeppelin.com/t/contract-wizard-error-unable-to-generate-contract-bytecode-and-abi-general-exception-unable-to-get-compiled-bytecode/28815/1 "2022-05-17T17:26:00Z")

</div>

Hi guys,

i want to verify my token on BSC. I did my BEP-20 Token with here:

> **[Contracts Wizard - OpenZeppelin Docs](https://docs.openzeppelin.com/contracts/4.x/wizard)**

I deployed my token with remix:  
[https://remix.ethereum.org/](https://remix.ethereum.org/)

This is my SourceCode which is just a test for a real token to verify....  
But i already spend a lot of BNB to make new Tokens to try to verify but everytime i try to make a token with Contract Wizard i cant verify this token on BSCScan....

This is my source code:

```auto
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts@4.6.0/token/ERC20/ERC20.sol";

contract Florian is ERC20 {
    constructor() ERC20("Florian", "FLO") {
        _mint(msg.sender, 1000 * 10 ** decimals());
    }
}

```

What do i do wrong? Why cant i verify my SourceCode on BSCScan with the code above?

#support #smart-contracts

---

<div class="post-metadata">

**Author:** ![ericglau](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/ericglau/32/15149_2.png) [@ericglau](https://forum.openzeppelin.com/u/ericglau)\
**Post date:** [May 17, 2022, 8:55pm UTC](https://forum.openzeppelin.com/t/contract-wizard-error-unable-to-generate-contract-bytecode-and-abi-general-exception-unable-to-get-compiled-bytecode/28815/2 "2022-05-17T20:55:02Z")

</div>

Read [How to verify a contract on Etherscan/BscScan/PolygonScan](https://forum.openzeppelin.com/t/how-to-verify-a-contract-on-etherscan-bscscan-polygonscan/14225) for more details on how to verify.

You need to ensure you [include all source code including imports](https://forum.openzeppelin.com/t/how-to-verify-a-contract-on-etherscan-bscscan-polygonscan/14225#file-import-callback-not-supported-16) and that [all compilation details match](https://forum.openzeppelin.com/t/how-to-verify-a-contract-on-etherscan-bscscan-polygonscan/14225#unable-to-generate-contract-bytecode-and-abi-15). The [recommendation is to use Hardhat](https://forum.openzeppelin.com/t/how-to-verify-a-contract-on-etherscan-bscscan-polygonscan/14225#prefer-hardhat-to-deploy-8) since that makes things easier to verify.

---

<div class="post-metadata">

**Author:** ![ericglau](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/ericglau/32/15149_2.png) [@ericglau](https://forum.openzeppelin.com/u/ericglau)\
**Post date:** [May 17, 2022, 8:55pm UTC](https://forum.openzeppelin.com/t/contract-wizard-error-unable-to-generate-contract-bytecode-and-abi-general-exception-unable-to-get-compiled-bytecode/28815/3 "2022-05-17T20:55:10Z")

</div>

Closed on May 17, 2022, 8:55pm UTC


