Hello,
I would like to point out some of the differences between editor calls and direct sdk-js calls. An editor uses the same libraries that we use in raw as developers and also with the same versions. Despite the fact it is very time-consuming to try to figure out why one thing does not work while the other works and they both use the same core-libs at the back. Here are some things…
Oracle deployment (at init
method)
In the init
method, An oracle registration with Relative TTL higher than a certain number e.g. 64797
& higher will fail on invocation while with 64796
& lower will deploy the contract & direct calls can work with a higher number which are through importing sdk-js.
Try with AeStudio && RelativeTTL(64797):
Try with AeStudio && RelativeTTL(64796):
Try with https://contracts.aeternity.art/ && RelativeTTL(64797)
Try with https://contracts.aeternity.art/ && RelativeTTL(64796)
Try with SDK-js from custom js script, gasPrice: 5500000000
&& RelativeTTL(999999)
Works!
Query Calls (by running query
method)
This is a basic query call with argument value: "https://api.therocktrading.com/api/ticker/BTCEUR__result[0]__volume", false
Try with AeStudio
Try with https://contracts.aeternity.art/
Try with sdk-js custom script
→ When you get Query ID in return from calling query, that means the calls is successful.
Code to try with both Change the relative TTL accordingly and make the query calls as you like.
Note: On editors, I tried with higher gas and gasprice as well as per developers suggestions but this issue remains for now.
Let me know if you got the same experience.
Edit: I am adding this post here as ae-studio developers told me to do so, Hope to see some progress on this.