File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
target_chains/solana/sdk/js/pyth_solana_receiver Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @pythnetwork/pyth-solana-receiver" ,
3
- "version" : " 0.8.0 " ,
3
+ "version" : " 0.8.1 " ,
4
4
"description" : " Pyth solana receiver SDK" ,
5
5
"homepage" : " https://pyth.network" ,
6
6
"main" : " lib/index.js" ,
Original file line number Diff line number Diff line change @@ -465,15 +465,16 @@ export class PythSolanaReceiver {
465
465
encodedVaaAddress : PublicKey ;
466
466
closeInstructions : InstructionWithEphemeralSigners [ ] ;
467
467
} > {
468
+ const trimmedVaa = trimSignatures ( vaa , 13 ) ;
468
469
const postInstructions : InstructionWithEphemeralSigners [ ] = [ ] ;
469
470
const closeInstructions : InstructionWithEphemeralSigners [ ] = [ ] ;
470
471
const encodedVaaKeypair = new Keypair ( ) ;
471
- const guardianSetIndex = getGuardianSetIndex ( vaa ) ;
472
+ const guardianSetIndex = getGuardianSetIndex ( trimmedVaa ) ;
472
473
473
474
postInstructions . push (
474
475
await buildEncodedVaaCreateInstruction (
475
476
this . wormhole ,
476
- vaa ,
477
+ trimmedVaa ,
477
478
encodedVaaKeypair
478
479
)
479
480
) ;
@@ -491,7 +492,7 @@ export class PythSolanaReceiver {
491
492
postInstructions . push (
492
493
...( await buildWriteEncodedVaaWithSplitInstructions (
493
494
this . wormhole ,
494
- vaa ,
495
+ trimmedVaa ,
495
496
encodedVaaKeypair . publicKey
496
497
) )
497
498
) ;
You can’t perform that action at this time.
0 commit comments