Skip to content

Commit

Permalink
fix: update HermesClient usage in post_twap_update
Browse files Browse the repository at this point in the history
  • Loading branch information
tejasbadadare committed Dec 21, 2024
1 parent a6f20db commit 977f1d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function getTwapUpdateData() {
const hermesConnection = new HermesClient("https://hermes.pyth.network/", {});

// Request TWAP updates for the last hour (3600 seconds)
const response = await hermesConnection.getLatestTwapUpdates(
const response = await hermesConnection.getLatestTwaps(
[SOL_PRICE_FEED_ID, ETH_PRICE_FEED_ID],
3600,
{ encoding: "base64" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/pyth-solana-receiver",
"version": "0.9.0",
"version": "0.9.1",
"description": "Pyth solana receiver SDK",
"homepage": "https://pyth.network",
"main": "lib/index.js",
Expand Down

0 comments on commit 977f1d3

Please sign in to comment.