0

I'm having trouble with verification of smart contracts and some ERC20 tokens. The only tokens I was able to verify were the ones derived from ERC20Detailed. Here's a simple contract that I found on the web that also fails. I have all the settings and parameters right including compiler version, byte code, etc.

I'm using Ropsten. Before answering, please try to deploy and verify this yourself. Thanks!

pragma solidity 0.5.1;

contract SimpleStorage {
    uint storeddata;
    function set(uint x) public {
        storeddata = x;
    }
    function get() public view returns(uint) {
        return storeddata;
    }
}
  • Deployed to Ropsten and verified on Etherscan, at ropsten.etherscan.io/address/… (though note that I have used solc 0.4.25). – goodvibration Aug 29 at 12:34
  • Thanks. Is there an easy 1-2-3 guide to do this with solc 0.4.25? I used remix + metamask for this deployment. – awni Sep 1 at 18:29
  • To do what with solc 0.4.25? I used this compiler version just for personal convenience, and just for proving that it works. Shouldn't be different with any other version. – goodvibration Sep 1 at 19:15
  • Can you please share the address of the deployed and verified contract? – awni Sep 1 at 19:20
  • I did, it is linkd in that comment above! – goodvibration Sep 1 at 19:21
5

I deployed the contract on the Kovan test net. Deployment versions same as you.

Everything worked properly. I see no reason for it not to work on Ropsten.

How did you deploy the contract? Maybe share the address to I can try to verify it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.