Closed quiet-node closed 7 months ago
Ah figured it out I must update prices first before calling other APIs
function updatePriceFeed(bytes[] calldata pythPriceUpdateData) external payable {
uint value = pyth.getUpdateFee(pythPriceUpdateData);
pyth.updatePriceFeeds{ value: value }(pythPriceUpdateData);
}
Hello! I'm currently delving into Pyth Network on Hedera, but I'm encountering some issues getting it to work.
I've created a simple contract:
I deployed this contract using Remix IDE and verified it on the Hedera testnet, which can be found here. However, when I attempt to call the
.getPrice()
method, the transaction is reverted with the errorCONTRACT_REVERT_EXECUTED
:In addition to the above, I went to your API reference on your docs page at https://docs.pyth.network/price-feeds/api-reference/evm/get-price to try out the getPrice() method, the transaction there also get reverted but with
StalePrice()
Do you think the SDK is down or has some problems?
Would appreciate any insights or help debugging this.