Skip to content

Commit 57858b8

Browse files
authored
feat: update starknet example (#352)
1 parent 5ec5506 commit 57858b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/price-feeds/use-real-time-data/starknet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const priceId =
160160
const currentPrices = await connection.getLatestPriceFeeds([priceId]);
161161

162162
// Convert the price update to Starknet format.
163-
const pythUpdate = ByteBuffer.fromHex(currentPrices[0].vaa);
163+
const pythUpdate = ByteBuffer.fromBase64(currentPrices[0].vaa);
164164
```
165165

166166
<Callout type="info" emoji="ℹ️">

0 commit comments

Comments
 (0)