Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: remove unused extension and lowercase #114

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions LDKNodeMonday/Extensions/String+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,6 @@ extension String {
return words.map { $0.capitalized }.joined(separator: " ")
}

private var isLightningAddress: Bool {
let lowercasedSelf = self.lowercased()
let queryParams = self.queryParameters()
if let lightningParam = queryParams["lightning"], !lightningParam.isEmpty {
return true
}
return lowercasedSelf.starts(with: "ln") || lowercasedSelf.hasPrefix("lightning:")
}

private var isBitcoinAddress: Bool {
return lowercased().hasPrefix("bitcoin:") || isValidBitcoinAddress
}
Expand Down
2 changes: 1 addition & 1 deletion LDKNodeMonday/View Model/Home/Receive/BIP21ViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BIP21ViewModel: ObservableObject {
)

DispatchQueue.main.async {
self.unified = unifiedLowercase
self.unified = unified
}
} catch let error as NodeError {
let errorString = handleNodeError(error)
Expand Down
1 change: 0 additions & 1 deletion LDKNodeMonday/View/Home/Receive/BIP21View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ struct BIP21View: View {
@State private var bolt12ShowCheckmark = false
@State private var unifiedIsCopied = false
@State private var unifiedShowCheckmark = false

@State private var showingReceiveViewErrorAlert = false
@State private var isKeyboardVisible = false

Expand Down
Loading