Need Help verify & Publish Contract Source Code

Dear Open Zeppelin Community,
i started a small Project with a cute Idea, but my developing skills are not that good.
I have Problems veryfing my Token on BSC.

I use the Pragma Solidity 0.8.0 compiler. I sucsessfuly deployed the Contract with Remix. But on BSCscan is the following error:

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

I already tried to use Hardhat to Flattern the Contract to get all Information I need. But my skills are to low for that.

pragma solidity ^0.8.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";

contract SpaceWolf is ERC20 {
    constructor(uint256 initialSupply) public ERC20("SpaceWolf", "SWO") {
        _mint(msg.sender, initialSupply);
    }
}

This: 0x57ce71a128e268e00a6b58d4d32317876fa482d7 is my Contract address. Is anybody there
who could help me?

Solved by my self thx for help

2 Likes

No problem, If you ever need a custom contract developing, I’m here.

1 Like

Hi, how were you able to resolve the error? I’m having the same issue.

when you using remix, you can get the compiled ABI when you are compiling, right at the bottom left screen.

and if you are using Constructor Parameter, you may need to add that params in ABI when verifying contract by yourself. consider using online ABI converter to add your constructor param.

2 Likes

i can get the compiled ABI and do what with it?

Hi, welcome! :wave:

If you are trying to verify your contracts, I think you can a look at this tutorial: