I tried to run the code in http://dapps.oraclize.it/browser-solidity/#version=soljson-v0.4.24+commit.e67f0147.js but I get the error VM: out of gas
when I try to run the updatePrice
function. I set the value of 0.05 ether when running the function and deploying the contract.
I have tried running it in injected web3(rinkeby testnet) in remix, the updatePrice
function runs but the __callback
is not called. Did it according to https://medium.com/coinmonks/simple-oraclize-example-with-solidity-68b6811902da.
Tried running the dieselPrice.sol
from the oraclize site in remix.ethereum.com with JavaScript VM. But this yields:
transact to ExampleContract.updatePrice errored: VM error: revert
revert The transaction has been reverted to the initial state.
Note: The constructor should be payable if you send value. Debug the transaction to get more information.
when running updatePrice
with 0.05 ether as the set value.