I just opened up the Oraclize website and copied their 'Quick Start' ethereum contract and pasted it into Solidity online compiler to try it out (environment is Javascript VM). When I change the value from 0 to something like 10 or 20 and then hit create, I'm expecting the contract to call the constructor, which calls the updatePrice()
function and then a query should be sent. What happens instead is that I get an error:
Exception during execution. (invalid opcode). Please debug the transaction for more information.
Why am I getting an error if I just copied and pasted code in the documentation?