From 01cdc029868ea44c24c1206215971087f8fea885 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Tue, 30 Jan 2024 12:16:15 +0000 Subject: [PATCH] More randomness --- pythnet/pythnet_sdk/src/test_utils/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/pythnet/pythnet_sdk/src/test_utils/mod.rs b/pythnet/pythnet_sdk/src/test_utils/mod.rs index 1fdbb039cf..4e06f9c752 100644 --- a/pythnet/pythnet_sdk/src/test_utils/mod.rs +++ b/pythnet/pythnet_sdk/src/test_utils/mod.rs @@ -236,5 +236,6 @@ pub fn trim_vaa_signatures(vaa: Vec, n: u8) -> Vec { .choose_multiple(&mut thread_rng(), n.into()) .cloned() .collect(); + parsed_vaa.signatures.sort_by(|a, b| a.index.cmp(&b.index)); serde_wormhole::to_vec(&parsed_vaa).unwrap() }