Skip to content

Commit

Permalink
resolved conflict resolution errors
Browse files Browse the repository at this point in the history
Signed-off-by: kcw-grunt <[email protected]>
  • Loading branch information
kcw-grunt committed Apr 3, 2024
1 parent 30c5c32 commit 7886799
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion litewallet/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
LWAnalytics.logEventWithParameters(itemName: ._20200112_ERR,
properties: properties)
}

updateCurrentUserLocale(localeId: Locale.current.identifier)

guard let thisWindow = window else { return false }
Expand Down
1 change: 0 additions & 1 deletion litewallet/ApplicationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ class ApplicationController: Subscriber, Trackable {
}

private func startDataFetchers() {

initKVStoreCoordinator()
feeUpdater?.refresh()
defaultsUpdater?.refresh()
Expand Down
1 change: 0 additions & 1 deletion litewallet/Constants/Functions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,5 @@ func tieredOpsFee(store: Store, amount: UInt64) -> UInt64 {
return UInt64(3.00 / usdRate * 100_000_000)
default:
return UInt64(3.00 / usdRate * 100_000_000)

}
}
4 changes: 2 additions & 2 deletions litewallet/PartnerData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ struct Partner {
guard let releasePath = Bundle.main.path(forResource: "partner-keys",
ofType: "plist")
else {
let errorDescription = "partnerkey_data_missing"
LWAnalytics.logEventWithParameters(itemName: ._20200112_ERR, properties: ["error": errorDescription])
return "error: FILE-NOT-FOUND"
}
Expand Down Expand Up @@ -85,7 +86,6 @@ struct Partner {
{
return key
} else {

let errorDescription = "error_pusher_id_key"
LWAnalytics.logEventWithParameters(itemName: ._20200112_ERR, properties: ["error": errorDescription])
return errorDescription
Expand All @@ -98,7 +98,7 @@ struct Partner {
{
return key
} else {
let errorDescription = "error_pusher_id_key"
let errorDescription = "error_pusher_id_key"

LWAnalytics.logEventWithParameters(itemName: ._20200112_ERR, properties: ["error": errorDescription])
return errorDescription
Expand Down
4 changes: 2 additions & 2 deletions litewallet/TransactionCellViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ class TransactionCellViewModel: ObservableObject {
amountText = transaction.descriptionString(isLtcSwapped: isLtcSwapped, rate: rate, maxDigits: maxDigits).string

feeText = transaction.amountDetails(isLtcSwapped: isLtcSwapped, rate: rate, rates: [rate], maxDigits: maxDigits)
addressText = String(format: transaction.direction.addressTextFormat, transaction.toAddress ?? "---ERROR---")

addressText = String(format: transaction.direction.addressTextFormat, transaction.toAddress ?? "---ERROR---")

if transaction.direction == .sent {
directionImageText = "arrowtriangle.up.circle.fill"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ class SendViewController: UIViewController, Subscriber, ModalPresentable, Tracka
// MARK: - SendButton Model Callbacks / Actions

sendButtonCell.rootView.doSendTransaction = {

if let sendAddress = self.sendAddressCell.address,
sendAddress.isValidAddress
{
Expand Down Expand Up @@ -232,7 +231,6 @@ class SendViewController: UIViewController, Subscriber, ModalPresentable, Tracka
var combinedFeesOutput = ""
var balanceColor: UIColor = .grayTextTint

<
/// Check the amount is greater than zero and amount satoshis are not nil
if let currentRate = currentRate,
let enteredAmount = enteredAmount,
Expand Down
3 changes: 1 addition & 2 deletions litewallet/ViewModels/Transaction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ struct TransactionStatusTuple {
class Transaction {
// MARK: - Public


private let opsAddressSet: Set<String> = Partner.litewalletOpsSet()
init?(_ tx: BRTxRef, walletManager: WalletManager, kvStore: BRReplicatedKVStore?, rate: Rate?) {
guard let wallet = walletManager.wallet else { return nil }
Expand All @@ -21,7 +20,7 @@ class Transaction {
self.tx = tx
self.wallet = wallet
self.kvStore = kvStore

let fee = wallet.feeForTx(tx) ?? 0

var outputAddresses = Set<String>()
Expand Down

0 comments on commit 7886799

Please sign in to comment.