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 c5f6077 commit b15f3f7Copy full SHA for b15f3f7
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