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` 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')