File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -265,8 +265,10 @@ impl<'a> bip21::de::DeserializationState<'a> for DeserializationState {
265265 "lno" => {
266266 let bolt12_value =
267267 String :: try_from ( value) . map_err ( |_| Error :: UriParameterParsingFailed ) ?;
268- let offer =
269- bolt12_value. parse :: < Offer > ( ) . map_err ( |_| Error :: UriParameterParsingFailed ) ?;
268+ let offer = bolt12_value
269+ . to_lowercase ( )
270+ . parse :: < Offer > ( )
271+ . map_err ( |_| Error :: UriParameterParsingFailed ) ?;
270272 self . bolt12_offer = Some ( offer) ;
271273 Ok ( bip21:: de:: ParamKind :: Known )
272274 } ,
@@ -342,7 +344,7 @@ mod tests {
342344 }
343345
344346 if let Some ( offer) = parsed_uri_with_offer. extras . bolt12_offer {
345- assert_eq ! ( offer, Offer :: from_str( expected_bolt12_offer_2) . unwrap( ) ) ;
347+ assert_eq ! ( offer, Offer :: from_str( & expected_bolt12_offer_2. to_lowercase ( ) ) . unwrap( ) ) ;
346348 } else {
347349 panic ! ( "No offer found." ) ;
348350 }
You can’t perform that action at this time.
0 commit comments