Skip to content

Commit

Permalink
accepted class ids
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Apr 24, 2024
1 parent bd7922e commit 736d4a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ibc-apps/ics721-nft-transfer/types/src/class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,16 +307,16 @@ mod tests {
"empty base class ID with trace"
);
assert!(
PrefixedClassId::from_str("/myclass").is_err(),
PrefixedClassId::from_str("/myclass").is_ok(),
"empty prefix"
);
assert!(PrefixedClassId::from_str("//myclass").is_err(), "empty ids");
assert!(PrefixedClassId::from_str("//myclass").is_ok(), "empty ids");
assert!(
PrefixedClassId::from_str("transfer/").is_err(),
PrefixedClassId::from_str("transfer/").is_ok(),
"single trace"
);
assert!(
PrefixedClassId::from_str("transfer/myclass").is_err(),
PrefixedClassId::from_str("transfer/myclass").is_ok(),
"single trace with base class ID"
);
assert!(
Expand All @@ -328,11 +328,11 @@ mod tests {
"valid multiple trace info"
);
assert!(
PrefixedClassId::from_str("(transfer)/channel-0/myclass").is_err(),
PrefixedClassId::from_str("(transfer)/channel-0/myclass").is_ok(),
"invalid port"
);
assert!(
PrefixedClassId::from_str("transfer/(channel-0)/myclass").is_err(),
PrefixedClassId::from_str("transfer/(channel-0)/myclass").is_ok(),
"invalid channel"
);

Expand Down

0 comments on commit 736d4a1

Please sign in to comment.