diff --git a/target_chains/solana/sdk/js/pyth_solana_receiver/package.json b/target_chains/solana/sdk/js/pyth_solana_receiver/package.json index 041cfdd1fe..477e7d5a8b 100644 --- a/target_chains/solana/sdk/js/pyth_solana_receiver/package.json +++ b/target_chains/solana/sdk/js/pyth_solana_receiver/package.json @@ -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", diff --git a/target_chains/solana/sdk/js/pyth_solana_receiver/src/PythSolanaReceiver.ts b/target_chains/solana/sdk/js/pyth_solana_receiver/src/PythSolanaReceiver.ts index f2f5937c48..7226cbb547 100644 --- a/target_chains/solana/sdk/js/pyth_solana_receiver/src/PythSolanaReceiver.ts +++ b/target_chains/solana/sdk/js/pyth_solana_receiver/src/PythSolanaReceiver.ts @@ -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 ) ); @@ -491,7 +492,7 @@ export class PythSolanaReceiver { postInstructions.push( ...(await buildWriteEncodedVaaWithSplitInstructions( this.wormhole, - vaa, + trimmedVaa, encodedVaaKeypair.publicKey )) );