Skip to content

Commit

Permalink
fix bech32 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed Oct 16, 2023
1 parent 92b27fe commit 91955b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/tests/types/address/bech32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("中國")
));
}

Expand Down

0 comments on commit 91955b2

Please sign in to comment.