Skip to content

Commit

Permalink
handle fedimint prefix for oob notes
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Apr 12, 2024
1 parent dea732d commit 689ef09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions waila/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ impl FromStr for PaymentParams<'_> {
let str = lower.strip_prefix("fedimint:").unwrap();
return InviteCode::from_str(str)
.map(PaymentParams::FedimintInvite)
.or_else(|_| OOBNotes::from_str(str).map(PaymentParams::FedimintOOBNotes))
.map_err(|_| ());
} else if lower.starts_with("cashu:") {
let str = lower.strip_prefix("cashu:").unwrap();
Expand Down

0 comments on commit 689ef09

Please sign in to comment.