Skip to content

Commit

Permalink
set index
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Sep 16, 2024
1 parent 7f27ab5 commit 590b793
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion staking/cli/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ pub fn process_write_encoded_vaa(
payer,
&encoded_vaa_keypair.pubkey(),
&wormhole,
i,
chunk,
);
}
Expand Down Expand Up @@ -312,6 +313,7 @@ pub fn write_encoded_vaa(
payer: &Keypair,
encoded_vaa: &Pubkey,
wormhole: &Pubkey,
index: usize,
chunk: &[u8],
) {
let write_encoded_vaa_accounts = wormhole_core_bridge_solana::accounts::WriteEncodedVaa {
Expand All @@ -325,7 +327,7 @@ pub fn write_encoded_vaa(
accounts: write_encoded_vaa_accounts.clone(),
data: wormhole_core_bridge_solana::instruction::WriteEncodedVaa {
args: WriteEncodedVaaArgs {
index: 0,
index: index as u32,
data: chunk.to_vec(),
},
}
Expand Down

0 comments on commit 590b793

Please sign in to comment.