Skip to content

Commit b089c8a

Browse files
authored
feat: fix solana sdk for benchmarks (#1831)
* go * bump
1 parent 1c0966f commit b089c8a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

target_chains/solana/sdk/js/pyth_solana_receiver/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/pyth-solana-receiver",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"description": "Pyth solana receiver SDK",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,15 +465,16 @@ export class PythSolanaReceiver {
465465
encodedVaaAddress: PublicKey;
466466
closeInstructions: InstructionWithEphemeralSigners[];
467467
}> {
468+
const trimmedVaa = trimSignatures(vaa, 13);
468469
const postInstructions: InstructionWithEphemeralSigners[] = [];
469470
const closeInstructions: InstructionWithEphemeralSigners[] = [];
470471
const encodedVaaKeypair = new Keypair();
471-
const guardianSetIndex = getGuardianSetIndex(vaa);
472+
const guardianSetIndex = getGuardianSetIndex(trimmedVaa);
472473

473474
postInstructions.push(
474475
await buildEncodedVaaCreateInstruction(
475476
this.wormhole,
476-
vaa,
477+
trimmedVaa,
477478
encodedVaaKeypair
478479
)
479480
);
@@ -491,7 +492,7 @@ export class PythSolanaReceiver {
491492
postInstructions.push(
492493
...(await buildWriteEncodedVaaWithSplitInstructions(
493494
this.wormhole,
494-
vaa,
495+
trimmedVaa,
495496
encodedVaaKeypair.publicKey
496497
))
497498
);

0 commit comments

Comments
 (0)