1

I'm simply trying to run one of the sample contracts here at dapps.oraclize.it/browser-solidity/ e.g. DieselPrice.sol.

When I create the contract without passing a value I get VM Exception: out of gas and when I do pass a value I get VM Exception: invalid opcode.

I'm wondering what's happening here.. what am I doing wrong?

2

Fixed the issue by changing the solidity version of the compiler to 0.4.20, making the constructor payable and removing calling 'update()' from the constructor.

This Github issue may provide some more info.

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.