Skip to content

Commit

Permalink
feat: fix solana sdk for benchmarks (#1831)
Browse files Browse the repository at this point in the history
* go

* bump
  • Loading branch information
guibescos authored Aug 20, 2024
1 parent 1c0966f commit b089c8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/pyth-solana-receiver",
"version": "0.8.0",
"version": "0.8.1",
"description": "Pyth solana receiver SDK",
"homepage": "https://pyth.network",
"main": "lib/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,15 +465,16 @@ export class PythSolanaReceiver {
encodedVaaAddress: PublicKey;
closeInstructions: InstructionWithEphemeralSigners[];
}> {
const trimmedVaa = trimSignatures(vaa, 13);
const postInstructions: InstructionWithEphemeralSigners[] = [];
const closeInstructions: InstructionWithEphemeralSigners[] = [];
const encodedVaaKeypair = new Keypair();
const guardianSetIndex = getGuardianSetIndex(vaa);
const guardianSetIndex = getGuardianSetIndex(trimmedVaa);

postInstructions.push(
await buildEncodedVaaCreateInstruction(
this.wormhole,
vaa,
trimmedVaa,
encodedVaaKeypair
)
);
Expand All @@ -491,7 +492,7 @@ export class PythSolanaReceiver {
postInstructions.push(
...(await buildWriteEncodedVaaWithSplitInstructions(
this.wormhole,
vaa,
trimmedVaa,
encodedVaaKeypair.publicKey
))
);
Expand Down

0 comments on commit b089c8a

Please sign in to comment.