Skip to content

Commit

Permalink
Merge pull request #1184 from tari-project/feature/remove_confirm_tra…
Browse files Browse the repository at this point in the history
…nsaction

Remove confirmation for TTL store funds transfer
  • Loading branch information
0xoqurde authored Dec 3, 2024
2 parents e13ffac + 3cc5a5b commit 293fc82
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions MobileWallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -4129,7 +4129,7 @@
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
MARKETING_VERSION = 0.29.0;
MARKETING_VERSION = 0.30.1;
PRODUCT_BUNDLE_IDENTIFIER = com.tari.wallet;
PRODUCT_NAME = "Tari Aurora";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -4162,7 +4162,7 @@
"@executable_path/Frameworks",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
MARKETING_VERSION = 0.29.0;
MARKETING_VERSION = 0.30.1;
PRODUCT_BUNDLE_IDENTIFIER = com.tari.wallet;
PRODUCT_NAME = "Tari Aurora";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
16 changes: 13 additions & 3 deletions MobileWallet/Screens/Send/AddAmount/AddAmountViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,14 @@ final class AddAmountViewController: DynamicThemeViewController {

@objc private func continueButtonTapped() {
guard let paymentInfo = updatedPaymentInfo() else { return }
let controller = AddNoteViewController(paymentInfo: paymentInfo, isOneSidedPayment: oneSidedPaymentSwitch.isOn)
navigationController?.pushViewController(controller, animated: true)

if paymentInfo.note != nil {
let paymentInfo = PaymentInfo(addressComponents: paymentInfo.addressComponents, alias: paymentInfo.alias, yatID: paymentInfo.yatID, amount: paymentInfo.amount, feePerGram: paymentInfo.feePerGram, note: paymentInfo.note)
TransactionProgressPresenter.showTransactionProgress(presenter: self, paymentInfo: paymentInfo, isOneSidedPayment: oneSidedPaymentSwitch.isOn)
}else {
let controller = AddNoteViewController(paymentInfo: paymentInfo, isOneSidedPayment: oneSidedPaymentSwitch.isOn)
navigationController?.pushViewController(controller, animated: true)
}
}

private func calculateAmount() -> MicroTari? {
Expand Down Expand Up @@ -542,7 +548,11 @@ extension AddAmountViewController {
continueButtonSecondConstraint.priority = UILayoutPriority(rawValue: 1000)
continueButtonSecondConstraint.isActive = true

continueButton.setTitle(localized("common.continue"), for: .normal)
if paymentInfo.note != nil {
continueButton.setTitle(localized("common.send.with_param", arguments: NetworkManager.shared.selectedNetwork.tickerSymbol), for: .normal)
}else {
continueButton.setTitle(localized("common.continue"), for: .normal)
}
continueButton.addTarget(self, action: #selector(continueButtonTapped), for: .touchUpInside)
continueButton.isEnabled = false
setupKeypad()
Expand Down
2 changes: 1 addition & 1 deletion dependencies.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FFI_VERSION="1.8.0-rc.0"
FFI_VERSION="1.9.1-rc.0"

0 comments on commit 293fc82

Please sign in to comment.