Skip to content

Commit

Permalink
fix all tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
yito88 committed Jan 25, 2024
1 parent 060efa9 commit db5702b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions crates/namada/src/ledger/native_vp/multitoken.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,18 @@ where
}

let mut all_tokens = BTreeSet::new();
let _ = inc_changes.keys().map(|k| all_tokens.insert(k.clone()));
let _ = dec_changes.keys().map(|k| all_tokens.insert(k.clone()));
let _ = inc_mints.keys().map(|k| all_tokens.insert(k.clone()));
let _ = dec_mints.keys().map(|k| all_tokens.insert(k.clone()));
inc_changes.keys().for_each(|k| {
all_tokens.insert(k.clone());
});
dec_changes.keys().for_each(|k| {
all_tokens.insert(k.clone());
});
inc_mints.keys().for_each(|k| {
all_tokens.insert(k.clone());
});
dec_mints.keys().for_each(|k| {
all_tokens.insert(k.clone());
});

Ok(all_tokens.iter().all(|token| {
let inc_change =
Expand Down

0 comments on commit db5702b

Please sign in to comment.