From 02c559ec3bdf019afab25545f6d31b996e22aade Mon Sep 17 00:00:00 2001 From: Daniel Chew Date: Fri, 3 Feb 2023 11:28:26 +0900 Subject: [PATCH 1/2] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0268194..591efb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.13.0 + +- Add method to fetch individual prices specified by user + ## 2.12.0 - Add `PriceStatus.Ignored` From 415a9617fa8c9dcf818d9bae7b8863f1d0aa9e4f Mon Sep 17 00:00:00 2001 From: Daniel Chew Date: Fri, 3 Feb 2023 11:28:47 +0900 Subject: [PATCH 2/2] 2.13.0 --- package-lock.json | 4 ++-- package.json | 2 +- src/PythHttpClient.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index be02daa..5ca2f7d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@pythnetwork/client", - "version": "2.12.0", + "version": "2.13.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@pythnetwork/client", - "version": "2.12.0", + "version": "2.13.0", "license": "Apache-2.0", "dependencies": { "@coral-xyz/anchor": "^0.26.0", diff --git a/package.json b/package.json index a055cd9..4c8b176 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/client", - "version": "2.12.0", + "version": "2.13.0", "description": "Client for consuming Pyth price data", "homepage": "https://pyth.network", "main": "lib/index.js", diff --git a/src/PythHttpClient.ts b/src/PythHttpClient.ts index b85f26c..779ec56 100644 --- a/src/PythHttpClient.ts +++ b/src/PythHttpClient.ts @@ -131,7 +131,7 @@ export class PythHttpClient { if (!accInfo) { throw new Error('Could not get account info for account ' + priceAccounts[i].toBase58()) } - + const baseData = parseBaseData(accInfo.data) if (baseData === undefined || baseData.type !== AccountType.Price) { throw new Error('Account ' + priceAccounts[i].toBase58() + ' is not a price account')