Skip to content

Commit de3cf5d

Browse files
committed
do it
1 parent 7e99d6f commit de3cf5d

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

target_chains/solana/sdk/js/pyth_solana_receiver/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ await transactionBuilder.addPriceConsumerInstructions(
104104
await pythSolanaReceiver.provider.sendAll(
105105
await transactionBuilder.buildVersionedTransactions({
106106
computeUnitPriceMicroLamports: 100000,
107+
tightComputeBudget: true,
107108
})
108109
);
109110
```
@@ -140,6 +141,7 @@ await transactionBuilder.addPriceConsumerInstructions(
140141
await pythSolanaReceiver.provider.sendAll(
141142
await transactionBuilder.buildVersionedTransactions({
142143
computeUnitPriceMicroLamports: 100000,
144+
tightComputeBudget: true,
143145
})
144146
);
145147
```

target_chains/solana/sdk/js/pyth_solana_receiver/examples/post_price_update.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ async function main() {
6060
await pythSolanaReceiver.provider.sendAll(
6161
await transactionBuilder.buildVersionedTransactions({
6262
computeUnitPriceMicroLamports: 100000,
63+
tightComputeBudget: true,
6364
}),
6465
{ preflightCommitment: "processed" }
6566
);

target_chains/solana/sdk/js/pyth_solana_receiver/examples/post_price_update_from_benchmarks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ async function main() {
5858
await pythSolanaReceiver.provider.sendAll(
5959
await transactionBuilder.buildVersionedTransactions({
6060
computeUnitPriceMicroLamports: 100000,
61+
tightComputeBudget: true,
6162
}),
6263
{ preflightCommitment: "processed" }
6364
);

target_chains/solana/sdk/js/pyth_solana_receiver/examples/update_price_feed.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ async function main() {
6060
await pythSolanaReceiver.provider.sendAll(
6161
await transactionBuilder.buildVersionedTransactions({
6262
computeUnitPriceMicroLamports: 100000,
63+
tightComputeBudget: true,
6364
}),
6465
{ preflightCommitment: "processed" }
6566
);

target_chains/solana/sdk/js/pyth_solana_receiver/src/PythSolanaReceiver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export type PythTransactionBuilderConfig = {
9191
* console.log("The SOL/USD price update will get posted to:", transactionBuilder.getPriceUpdateAccount(SOL_PRICE_FEED_ID).toBase58())
9292
* await transactionBuilder.addPriceConsumerInstructions(...)
9393
*
94-
* await pythSolanaReceiver.provider.sendAll(await transactionBuilder.buildVersionedTransactions({computeUnitPriceMicroLamports:100000}))
94+
* await pythSolanaReceiver.provider.sendAll(await transactionBuilder.buildVersionedTransactions({computeUnitPriceMicroLamports:100000, tightComputeBudget: true}))
9595
* ```
9696
*/
9797
export class PythTransactionBuilder extends TransactionBuilder {

0 commit comments

Comments
 (0)