From e15313dac5749589c170cecc9c09c67fe528597a Mon Sep 17 00:00:00 2001 From: Tal Derei Date: Sun, 5 May 2024 14:53:50 -0700 Subject: [PATCH] use sorting method in test --- crates/core/transaction/src/plan.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/core/transaction/src/plan.rs b/crates/core/transaction/src/plan.rs index edfd72218c..cf79dbe19d 100644 --- a/crates/core/transaction/src/plan.rs +++ b/crates/core/transaction/src/plan.rs @@ -534,9 +534,8 @@ mod tests { memo: Some(MemoPlan::new(&mut OsRng, memo_plaintext.clone())), }; - // Implement canonical ordering to the action plans to reduce client distinguishability. - plan.actions - .sort_by_key(|action: &ActionPlan| action.variant_index()); + // Sort actions within the transaction plan. + plan.sort_actions(); println!("{}", serde_json::to_string_pretty(&plan).unwrap());