I access the solidity browser from the following URL.


There are one basic sample code and one "Ballot" sample code when the page is opened by default. I have compiled the original code (no change on default code) by pressing "Compile" button in "Settings" page.

And I press the "Create" button in "Contract" page. However, only "VM Exception: invalid opcode" is shown even I tried in Google Chrome and IE.

Would anyone advise in this issue?

1 Answer 1


I think you had set a value in the "value input" before creating the contract.

put 0 and retry to create the contract. the ballot example works fine.

enter image description here

  • Thank you very much. You are right and the problem is solved.
    – Thomas Lau
    May 4, 2017 at 1:20

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.