Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random example does not works on Rinkeby and Ropsten #9

Closed
nosuchip opened this issue Oct 10, 2017 · 7 comments
Closed

Random example does not works on Rinkeby and Ropsten #9

nosuchip opened this issue Oct 10, 2017 · 7 comments

Comments

@nosuchip
Copy link

nosuchip commented Oct 10, 2017

I am trying to get worked this contract. It was deployed here and as you can see in "Event Logs" section of the transaction 0x89646db5402eaa5d4bd9dc97acbb8953154d236a9111ce18c7e59cc2d9035469 contains only strange event indicated that oraclize contract was called. But there is not event that fired on callback called.

@nosuchip nosuchip changed the title Random example does not works on Rinkeby Random example does not works on Rinkeby and Ropsten Oct 10, 2017
@nosuchip
Copy link
Author

Just checked - it does not works even on Ropsten.

@nosuchip
Copy link
Author

It even does not works in your own IDE: http://dapps.oraclize.it/browser-solidity/

@bertani
Copy link
Contributor

bertani commented Oct 11, 2017

Hello @nosuchip ,
on Rinkeby/Ropsten we had some delays in processing queries during the last few days - those are being addressed. However the callback was correctly received (late!) by the contract you mentioned in your first post.
The browser-solidity IDE is known not to support the random datasource proof verification as a real chain is needed to verify the commitment and the "vm mode" of browser-solidity is an "in-memory" execution.

Don't forget that Oraclize is asynchronous and as such the call to your __callback method happens in a different transaction sent by Oraclize later on.

I hope this helps!

@nosuchip
Copy link
Author

@bertani thank you for the response. I still see that issues with Ropsten/Rinkeby persist. But I'd like to clarify one thing - if I understood right, I should be able to run that example with commented out line that checks proof in your dapp IDE. But it still failed on contract creation step with error VM Exception: invalid opcode

@marcogiglio
Copy link
Contributor

marcogiglio commented Oct 11, 2017

Hi @nosuchip, the issue should now be resolved for the testnets: there was a problem of mis-configuration in the network name, which made the proof fail.
Regarding the VM Exception in our fork of the IDE: the connector which is deployed in the Javascript VM is not updated to implement the randomDS_getSessionPubKeyHash() function. When the example code calls that function, then it will throw and this is what happens in the constructor: constructor() -> update() -> oraclize_newRandomDSQuery -> oraclize_randomDS_getSessionPubKeyHash function -> randomDS_getSessionPubKeyHash().

@nosuchip
Copy link
Author

It is fantastic, but today this call oraclize_newRandomDSQuery(delay, randomBytesNumber, callbackGas); fails all the day on Rinkeby network.

@bertani
Copy link
Contributor

bertani commented Dec 9, 2017

This is fixed now. The Oraclize free deployments on testnets are experimental and they can experience issues from time to time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants