ethereum / play

playproject
https://playproject.io
MIT License
22 stars 5 forks source link

oraclize often out of gas, it is hard to test. #22

Closed alincode closed 6 years ago

alincode commented 6 years ago

@todo


I build a base function for use Integration call api, and Integration dapp.

Good news is work now, even code still ugly.

https://github.com/alincode/devon4

This is the smart contract information page. https://rinkeby.etherscan.io/address/0x696a92a0d6b36628dc92e32daba92b85df1c5d5c

1st line: oraclize callback
2st line: 2st call smart contract callUserAPI method
3st line: oraclize callback
4st line: 1st call smart contract callUserAPI method, it should don't need to pay any ether, because 1st call for free.
5st line: it is created smart contract transaction.

Bad news is, it is very unstable in test chain. Even I paid 1 ether, it always out of gas. it should don't need so many gas, it is just so simple smart contract. I asked the oraclize team, I am waiting for the their reply.

the function is correct, because not always happened "out of gas", I can get correct callback sometime.

alincode commented 6 years ago

2018-08-17 16 36 22