Skip to content

Commit

Permalink
Merge pull request #4154 from anoma/tomas/fix-ibc-tokens-gen
Browse files Browse the repository at this point in the history
test/ibc: ensure unique token IDs
  • Loading branch information
mergify[bot] authored Dec 11, 2024
2 parents 0af3996 + 19c8bc3 commit ea76477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ibc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1284,8 +1284,8 @@ pub mod testing {

prop_compose! {
/// Generate an arbitrary IBC token ID vector
pub fn arb_ibc_token_ids()(token_ids in collection::vec(arb_ibc_token_id().prop_map(|x| x.to_string()), 1..10)) -> TokenIds {
TokenIds::try_from(token_ids).expect("generated invalid IBC token ID vector")
pub fn arb_ibc_token_ids()(token_ids in collection::hash_set(arb_ibc_token_id().prop_map(|x| x.to_string()), 1..10)) -> TokenIds {
TokenIds::try_from(token_ids.into_iter().collect::<Vec<_>>()).expect("generated invalid IBC token ID vector")
}
}

Expand Down

0 comments on commit ea76477

Please sign in to comment.