Skip to content

Commit

Permalink
f Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
slanesuke committed Jun 20, 2024
1 parent 1b9e638 commit f93b217
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/payment/unified_qr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl UnifiedQrPayment {
Self { onchain_payment, bolt11_invoice, bolt12_payment, logger }
}

/// Generates a URI with an on-chain address and optional [BOLT 11] invoice.
/// Generates a URI with an on-chain address and [BOLT 11] invoice.
///
/// The URI allows users to send the payment request allowing the wallet to decide
/// which payment method to use. This enables a fallback mechanism: older wallets
Expand Down Expand Up @@ -216,7 +216,6 @@ impl<'a> bip21::de::DeserializationState<'a> for DeserializationState {

for prefix in lighting_str.split('&') {
let prefix_lowercase = prefix.to_lowercase();

if prefix_lowercase.starts_with("lnbc")
|| prefix_lowercase.starts_with("lntb")
|| prefix_lowercase.starts_with("lnbcrt")
Expand Down Expand Up @@ -256,7 +255,7 @@ mod tests {
use std::sync::{Arc, RwLock};
use tokio::runtime::Runtime;

fn test_unified_qr_payment_handler() -> UnifiedQrPayment {
fn unified_qr_payment_handler() -> UnifiedQrPayment {
let mut config = Config::default();
config.network = Network::Bitcoin;

Expand Down Expand Up @@ -312,7 +311,7 @@ mod tests {

#[test]
fn create_uri() {
let unified_qr_payment = test_unified_qr_payment_handler();
let unified_qr_payment = unified_qr_payment_handler();

let amount_sats = 100_000_000;
let message = Some("Test Message".to_string());
Expand Down

0 comments on commit f93b217

Please sign in to comment.