Skip to content

Commit 2628133

Browse files
committed
fix: imports, compute budget
1 parent e4d4d1b commit 2628133

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,10 @@ import {
3030
parseTwapMessage,
3131
} from "@pythnetwork/price-service-sdk";
3232
import {
33-
CLOSE_ENCODED_VAA_COMPUTE_BUDGET,
34-
INIT_ENCODED_VAA_COMPUTE_BUDGET,
33+
POST_TWAP_UPDATE_COMPUTE_BUDGET,
3534
POST_UPDATE_ATOMIC_COMPUTE_BUDGET,
3635
POST_UPDATE_COMPUTE_BUDGET,
3736
UPDATE_PRICE_FEED_COMPUTE_BUDGET,
38-
VERIFY_ENCODED_VAA_COMPUTE_BUDGET,
39-
WRITE_ENCODED_VAA_COMPUTE_BUDGET,
4037
} from "./compute_budget";
4138
import { Wallet } from "@coral-xyz/anchor";
4239
import {
@@ -694,7 +691,7 @@ export class PythSolanaReceiver {
694691
})
695692
.instruction(),
696693
signers: [twapUpdateKeypair],
697-
computeUnits: POST_UPDATE_COMPUTE_BUDGET,
694+
computeUnits: POST_TWAP_UPDATE_COMPUTE_BUDGET,
698695
});
699696

700697
priceFeedIdToTwapUpdateAccount[

0 commit comments

Comments
 (0)