Skip to content

Commit 6eabcd1

Browse files
committed
allow nextPriceAccountKey to be null
1 parent cc1274b commit 6eabcd1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
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+
## 1.0.7
4+
5+
### Changed
6+
7+
allow nextPriceAccountKey to be null
8+
39
## 1.0.6
410

511
### Changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const parsePriceData = (data: Buffer) => {
129129
// product id / reference account
130130
const productAccountKey = new PublicKey(data.slice(48, 80))
131131
// next price account in list
132-
const nextPriceAccountKey = new PublicKey(data.slice(80, 112))
132+
const nextPriceAccountKey = PKorNull(data.slice(80, 112))
133133
// aggregate price updater
134134
const aggregatePriceUpdaterAccountKey = new PublicKey(data.slice(112, 144))
135135
const aggregatePriceInfo = parsePriceInfo(data.slice(144, 176), exponent)

0 commit comments

Comments
 (0)