3

I have a contract: https://github.com/slavik0329/BetterAuction that i want to verify here: https://etherscan.io/verifyContract?a=0x3e7a000DC9FE17424cBA7E5bB21390A87a8e32d6 the arguments are:

0xb7cf43651d8f370218cF92B00261cA3e1B02Fda0

0x60CE2769E5d330303Bd9Df88F7b843A40510F173

0x7422B53EB5f57AdAea0DdffF82ef765Cfbc4DBf0

1800

100000

how do i create the ABI-encoded constructor arguments? This does not work: 00000000000000000000000xb7cf43651d8f370218cF92B00261cA3e1B02Fda000000000000000000000000x60CE2769E5d330303Bd9Df88F7b843A40510F17300000000000000000000000x7422B53EB5f57AdAea0DdffF82ef765Cfbc4DBf000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000100000

1

Try this:

000000000000000000000000b7cf43651d8f370218cF92B00261cA3e1B02Fda000000000000000000000000060CE2769E5d330303Bd9Df88F7b843A40510F1730000000000000000000000007422B53EB5f57AdAea0DdffF82ef765Cfbc4DBf0000000000000000000000000000000000000000000000000000000000000070800000000000000000000000000000000000000000000000000000000000186a0

Two changes with respect to your version:

  • Removal of the leading 0x from the addresses

  • I'm assuming your last two parameters are decimal 1800 and 100000, which are 0x708 and 0x186a0 respectively in hex. If they are already hex then change them back in the above.

  • 1
    thanks i learned two things, but unfortunately the contract does not verify. Any other suggestions? – Hans-Ueli M. Jul 23 '17 at 20:43
  • Well, looking at the initial deployment transcation for the contract, it seems that bidding period was set to 1125 (0x465) rather than 1800 (0x708) as you stated above. So try replacing "708" with "465". The other thing to check is the precise compiler version. – benjaminion Jul 24 '17 at 8:58
1

You can use an online tool https://abi.hashex.org to generate ABI-encoded constructor argument, it will automatically produce result, just pick Function type constructor and enter parameter types and their values.

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.