We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
String
1 parent 3ab3f38 commit 6c5a8caCopy full SHA for 6c5a8ca
lightning/src/offers/parse.rs
@@ -58,7 +58,7 @@ mod sealed {
58
59
let parsed = CheckedHrpstring::new::<NoChecksum>(encoded.as_ref())?;
60
let hrp = parsed.hrp();
61
- if (hrp.as_str() != Self::BECH32_HRP) && (hrp.as_str().to_lowercase() != Self::BECH32_HRP) {
+ if (hrp.as_str() != Self::BECH32_HRP) && hrp.lowercase_char_iter().ne(Self::BECH32_HRP.chars()) {
62
return Err(Bolt12ParseError::InvalidBech32Hrp);
63
}
64
0 commit comments