Skip to content

Commit c90a49e

Browse files
authored
Include price account key as string (#27)
1 parent ba885ff commit c90a49e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export interface Product {
5959
asset_type: string
6060
quote_currency: string
6161
tenor: string
62+
price_account: string
6263
[index: string]: string
6364
}
6465

@@ -195,6 +196,7 @@ export const parseProductData = (data: Buffer): ProductData => {
195196
const priceAccountBytes = data.slice(16, 48)
196197
const priceAccountKey = new PublicKey(priceAccountBytes)
197198
const product = {} as Product
199+
product.price_account = priceAccountKey.toBase58()
198200
let idx = 48
199201
while (idx < size) {
200202
const keyLength = data[idx]

0 commit comments

Comments
 (0)