diff --git a/sdk/tests/types/address/bech32.rs b/sdk/tests/types/address/bech32.rs index 96e1e109b6..2f54ba64ac 100644 --- a/sdk/tests/types/address/bech32.rs +++ b/sdk/tests/types/address/bech32.rs @@ -41,7 +41,7 @@ fn hrp_from_str() { assert!(matches!( Hrp::from_str("中國"), - Err(Error::InvalidBech32Hrp(hrp)) if hrp == "中國" + Err(Error::InvalidBech32Hrp(hrp)) if hrp.starts_with("中國") )); }