Verify ERC20 token on Etherscan, Invalid constructor arguments provided

Brother, I created a token today and deployed on main ethernet but while verifying on etherscan, it give me and Error message " Error! Invalid constructor arguments provided. Please verify that they are in ABI-encoded format"

below is my code and contract address : 0xa9fcc6f296dfae08dc8acbd0de56203a14fd924c

pragma solidity ^0.5.0;

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

contract Nuke is ERC20, ERC20Detailed {

    constructor () public ERC20Detailed("Nuke", "NUK", 18) {
        _mint(msg.sender, 1000000 * (10 ** uint256(decimals())));
    }
}

please help!

1 Like

Please tell us which version do you use?
Kind reminder, there is a flattener plugin that can get the whole source code.
And there is a verify contract plugin

2 Likes

Hi @Webbleo_dev,

Welcome to the community :wave:

I recommend trying the following: Verify smart contract inheriting from OpenZeppelin Contracts

Your contract doesn’t have any constructor arguments, it was compiled with Solidity 0.5.17. I assume it was compiled with optimization disabled.

1 Like

Hi @Webbleo_dev,

Were you able to verify?