Skip to content

Commit a632ee4

Browse files
authored
fix(solana_pusher): forgot await (#1423)
* fix(solana_pusher): forgot await * pr comments
1 parent 44cad44 commit a632ee4

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

price_pusher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/price-pusher",
3-
"version": "6.3.1",
3+
"version": "6.4.2",
44
"description": "Pyth Price Pusher",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

price_pusher/src/solana/solana.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,17 @@ export class SolanaPricePusher implements IPricePusher {
7878
const transactionBuilder = this.pythSolanaReceiver.newTransactionBuilder({
7979
closeUpdateAccounts: true,
8080
});
81-
transactionBuilder.addUpdatePriceFeed(priceFeedUpdateData, this.shardId);
81+
await transactionBuilder.addUpdatePriceFeed(
82+
priceFeedUpdateData,
83+
this.shardId
84+
);
8285

8386
try {
8487
await this.pythSolanaReceiver.provider.sendAll(
8588
await transactionBuilder.buildVersionedTransactions({
8689
computeUnitPriceMicroLamports: this.computeUnitPriceMicroLamports,
87-
})
90+
}),
91+
{ skipPreflight: true }
8892
);
8993
console.log(new Date(), "updatePriceFeed successful");
9094
} catch (e: any) {

0 commit comments

Comments
 (0)