Can't verify contract on BSC scan

Just like I mentioned above:
And BSC-Chain has a documentation about how to verify contracts, maybe you can have a look at it:

Verified!

1 Like

Do you mind sharing how you did it?
I couldn’t understand the steps in Hardhat or Truffle verify :frowning:

Skyge can you contact me on on here please and describe how it works and i will pay you a good sum if you do thank you! t.me/joinchat/T0ylNKzbAwgwNjMy

1 Like

Hi @Skyge,

Have tried truffle flattening but cannot seem to verify this contract - can you please advise?

Contract address: 0x1f838466746f6510185efa5bf2e01d6fbaa43915

Source Code:

pragma solidity ^0.8.0;

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

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

Many thanks in advance!

hey @Skyge,

Can you please help me verify my contract? i tried everything but nothing works.
My contract Code is: 0xf2c787abb72adce1af959e229ba55011871ce5e4

pragma solidity ^0.8.0;

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

contract SetupCoin is ERC20 {
constructor(uint256 initialSupply) public ERC20 (“SetupCoin”, “STPC”){
_mint(msg.sender,initialSupply);
}
}

Compiler Version: 0.8.1

@Papa @SetupCoin Please have a look at this tutorial Verify ERC20 token on Etherscan that was deployed through Remix: Step by Step Guide

Dear @Skyge,

I have tried to verify my contract but it didn’t work and I dont know what I’m doing wrong. I have looked around on the internet but I didn’t find what I was doing wrong. Could you please verify my contract? or help me verify it?

This is my contract:
0x38fca9ddad403929858a4af5b4ebe9a7b6f7600f
Compiler version: 0.8.0

This is my code:

pragma solidity ^0.8.0;

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

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

I am having issues!!! Please any help is welcome! :sweat:

We just launched our token, LUX Token, contract is 0xeb15c4980c3455e74948f4217c3fff00ee3ef9eb

We would like to be verified! Just having issues everytime I try to verify. We have multiple files, IBEP20.sol BEP20.sol and Context.sol

telegram personal chat is @wrenntaylor
easiest to contact @lux_token
i am willing to pay for someones help please!! :pensive:

1 Like

Hi, welcome! :wave:

Maybe the code on the main branch of the OpenZeppelin repo has updated, so when you try to flatten code, it will generate a different source code, so I think you can use the plugin I shared above to verify, cause the dependency at your local environment is correct.

1 Like

Hi, I recommend to ask questions at here, cause public discussion will help later people who encounters the same issue.

1 Like

This is contract!

I have issues because I deployed in remix, I don’t know what to do now. I have tried to do multi-file, used same commit…please anyone?

Hi @Skyge

I have tried to install truffle and hardhat but it doesn’t work. Could you help me download truffle or HardHat? If you can’t help me download truffle or HardHat, could you help me verify the contract?

I tried again, but I do not know the precise version, do you have the package-lock.json?

1 Like

@Skyge
After a lot of work I have downloaded Truffle, but i don’t get how you verify your contract now.
Could you please help me?
sorry for the many question. I hope you can help me

Emmmm, so how did you deploy the contract? By remix or truffle or something else?

1 Like

I deployed the contract with remix.

Yeah, I found the code on the main branch of the OpenZeppelin repo has updated, so maybe you should found out the original code you deployed rather than the latest version.

1 Like

I’m very new so sorry for the many questions. How can I found the code I used. I know the day when I created the code (20 May) and what do I need to do with that code? Do I need to use that code to verify my contract? And if so where?
again sorry im new and don’t know that much.

@Skyge any chance you can help this one? I spent hours trying to flatten and recode. this is the original code in remix:


// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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

contract Token is ERC20 {
    constructor () public ERC20("NomNom", "NOMNOM") {
        _mint(msg.sender, 666666666 * (10 ** uint256(decimals())));
    }
} 

contract: 0x671965051b0A9b5F2187cD35bE748c6C27EA4C4C

Thanks in advanced I “liked” all your posts

@nomnom For next time, please search at first and then ask question.
You can have a look at this tutorial: Verify ERC20 token on Etherscan that was deployed through Remix: Step by Step Guide - General / Guides and Tutorials - OpenZeppelin Community

1 Like