0

When try to verify token, I dont know what to put in for this line:

Constructor Arguments ABI-encoded (For contracts that accept constructor parameters)

I made token after looking at a YouTube video on how to do it.

I used this code:

https://gitlab.com/pedram31/cryptocoopx-ccx/blob/master/ccx-src.sol

And pasted it here:

http://remix.ethereum.org/#optimize=true&version=soljson-v0.4.24+commit.e67f0147.js

Now I have no idea how to verify my token:

https://etherscan.io/tx/0x08e3ec9a41318c26fcd6b9d26feba612628aee28e52e855a542a864fc41ef01e

I saw that there you can copy some numbers after 0029 but there is nothing after 0029.

I also saw that I can use https://abi.hashex.org/ or this https://abi.sonnguyen.ws/, but I do not know how to use these websites.

  • This is an error I get when I only paste the code and try to verify: "Error! Unable to verify source code Missing Constructor Arguments for function CCXTokenERC20(uint256 initialSupply, string tokenName, string tokenSymbol)" – Nikola Milosevic Aug 10 '18 at 23:57
  • What values did you use for initial supply, token name, and token symbol? – Shawn Tabrizi Aug 10 '18 at 23:58
  • I used 10.000.000.000 for initial supply, token name is Mooneta and token symbol is MNTX – Nikola Milosevic Aug 10 '18 at 23:59
  • use sol-verifier to get rid of encoding overhead : npmjs.com/package/sol-verifier – Aniket Apr 23 '19 at 9:20
0

Using your constructor function:

CCXTokenERC20(uint256 initialSupply, string tokenName, string tokenSymbol)

And you initial parameters:

10000000000, Mooneta, MNTX

You can use https://abi.hashex.org/ like so:

enter image description here

This results in the following value which you should be able to use:

00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000074d6f6f6e6574610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044d4e545800000000000000000000000000000000000000000000000000000000
| improve this answer | |
  • Thank you for help, sir. I used that code you provided me here and i got this error now: i.imgur.com/KZn2l4X.png – Nikola Milosevic Aug 11 '18 at 1:05
  • I might look at a more in depth verification tutorial here. – Shawn Tabrizi Aug 11 '18 at 1:09
  • I have read the article you send me, but I still don't understand what I need to do in order to fix this error I am getting. – Nikola Milosevic Aug 11 '18 at 1:34

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.