소스 검색

doc(pyth-solana-receiver): fix treasury id in examples (#2568)

* doc: fix treasury id

* doc: bump ver

* ci: add newline
Tejas Badadare 7 달 전
부모
커밋
c7b1f4a74d

+ 1 - 1
target_chains/solana/sdk/js/pyth_solana_receiver/examples/post_price_update.ts

@@ -32,7 +32,7 @@ async function main() {
   );
   // Use a stable treasury ID of 0, since its address is indexed in the address lookup table.
   // This is a tx size optimization and is optional. If not provided, a random treasury account will be used.
-  const treasuryId = 1;
+  const treasuryId = 0;
   const pythSolanaReceiver = new PythSolanaReceiver({
     connection,
     wallet,

+ 1 - 1
target_chains/solana/sdk/js/pyth_solana_receiver/examples/update_price_feed.ts

@@ -34,7 +34,7 @@ async function main() {
   );
   // Use a stable treasury ID of 0, since its address is indexed in the address lookup table.
   // This is a tx size optimization and is optional. If not provided, a random treasury account will be used.
-  const treasuryId = 1;
+  const treasuryId = 0;
   const pythSolanaReceiver = new PythSolanaReceiver({
     connection,
     wallet,

+ 1 - 1
target_chains/solana/sdk/js/pyth_solana_receiver/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@pythnetwork/pyth-solana-receiver",
-  "version": "0.10.0",
+  "version": "0.10.1",
   "description": "Pyth solana receiver SDK",
   "homepage": "https://pyth.network",
   "main": "lib/index.js",