Skip to content

Commit 5bbbe2b

Browse files
authored
Merge pull request #52 from pyth-network/guibescos/2.10
Release v2.10.0
2 parents 37d2dbc + 8aa29a0 commit 5bbbe2b

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 2.10.0
4+
5+
- Add `localnet` to `PythCluster`
6+
- Add `Permission` to `AccountType`
7+
- Fix error in idl and make it support `permissionsAccount`
8+
39
## 2.9.0
410
- Add Anchor client
511
## 2.8.0

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/client",
3-
"version": "2.9.0",
3+
"version": "2.10.0",
44
"description": "Client for consuming Pyth price data",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

src/__tests__/Anchor.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ test('Anchor', (done) => {
4444

4545
pythOracle.methods
4646
.addPrice(1, 1)
47-
.accounts({ fundingAccount: PublicKey.unique(), productAccount: PublicKey.unique(), priceAccount: PublicKey.unique() })
47+
.accounts({
48+
fundingAccount: PublicKey.unique(),
49+
productAccount: PublicKey.unique(),
50+
priceAccount: PublicKey.unique(),
51+
})
4852
.instruction()
4953
.then((instruction) => {
5054
expect(instruction.data).toStrictEqual(Buffer.from([2, 0, 0, 0, 4, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0]))

0 commit comments

Comments
 (0)