I cant verify my contract. It is very basic code. I cant understand why.


  • I cant verify my contract. It is very basic code. I cant understand why. i.stack.imgur.com/zrQM3.jpg
    – user125862
    Sep 9, 2023 at 8:17
  • Please send the code you are using, there is a high probability that the code does not match
    – Mehran Ra
    Sep 9, 2023 at 8:24
  • justpaste.it/c1w04
    – user125862
    Sep 9, 2023 at 8:33
  • Without data.push() in constructor . It is works. Why?
    – user125862
    Sep 9, 2023 at 9:07
  • The code is simple and does not import anything, it should not be a problem, check that your code does not have any problems in terms of syntax, pay attention to these points. Compiler version, optimization They must be entered correctly in ether scan. Have you followed these tips?
    – Mehran Ra
    Sep 9, 2023 at 9:09

1 Answer 1


copy both "what we are looking for" and "what we got" bytecode to a text editor and see where they differ. If "what we are looking for" bytecode has an extra set of bytes at the very end, it's probably encoded constructor parameters that are missing. You can copy that portion and enter it on the inout screen. If there is a big chunk in the middle - it might be a library that should be linked. If differences are in multiple places - it may be compiler version or optimizer parameters that didn't match. In any case, comparing these two bytecodes usually can give a good clue to what is lacking.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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