Skip to content

Commit

Permalink
use sorting method in test
Browse files Browse the repository at this point in the history
  • Loading branch information
TalDerei committed May 5, 2024
1 parent c21908d commit e15313d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/core/transaction/src/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit e15313d

Please sign in to comment.