From 6ea2a86b0a730a12e4ed94eebfa0c3e9a64561f2 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Tue, 30 Jan 2024 14:20:18 +0000 Subject: [PATCH] Cleanup --- .../programs/pyth-solana-receiver/tests/common/mod.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/target_chains/solana/programs/pyth-solana-receiver/tests/common/mod.rs b/target_chains/solana/programs/pyth-solana-receiver/tests/common/mod.rs index e8854a2ddd..631158c812 100644 --- a/target_chains/solana/programs/pyth-solana-receiver/tests/common/mod.rs +++ b/target_chains/solana/programs/pyth-solana-receiver/tests/common/mod.rs @@ -170,9 +170,3 @@ pub async fn setup_pyth_receiver(vaas: Vec>) -> ProgramTestFixt encoded_vaa_addresses, } } - -pub fn trim_vaa_signatures(vaa: Vec, n: u8) -> Vec { - 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() -}