Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Jan 30, 2024
1 parent 860b4a9 commit 6ea2a86
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,3 @@ pub async fn setup_pyth_receiver(vaas: Vec<Vaa<&RawMessage>>) -> ProgramTestFixt
encoded_vaa_addresses,
}
}

pub fn trim_vaa_signatures(vaa: Vec<u8>, n: u8) -> Vec<u8> {
let mut parsed_vaa: Vaa<&RawMessage> = serde_wormhole::from_slice(vaa.as_slice()).unwrap();
parsed_vaa.signatures = parsed_vaa.signatures[0..n as usize].to_vec();
serde_wormhole::to_vec(&parsed_vaa).unwrap()
}

0 comments on commit 6ea2a86

Please sign in to comment.