From 736d4a1deddd8f5277af4cc731d3fa730e7afd54 Mon Sep 17 00:00:00 2001 From: Ranadeep Biswas Date: Wed, 24 Apr 2024 15:02:09 +0200 Subject: [PATCH] accepted class ids --- ibc-apps/ics721-nft-transfer/types/src/class.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ibc-apps/ics721-nft-transfer/types/src/class.rs b/ibc-apps/ics721-nft-transfer/types/src/class.rs index ff2ab8cb3..ffacf32e1 100644 --- a/ibc-apps/ics721-nft-transfer/types/src/class.rs +++ b/ibc-apps/ics721-nft-transfer/types/src/class.rs @@ -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!( @@ -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" );