|
|
@ -244,7 +244,7 @@ class ConfigureTransactionViewController: UIViewController { |
|
|
|
private func recalculateTotalFeeForCustomGas() { |
|
|
|
private func recalculateTotalFeeForCustomGas() { |
|
|
|
cells.totalFee.value = viewModel.gasViewModel.feeText |
|
|
|
cells.totalFee.value = viewModel.gasViewModel.feeText |
|
|
|
let configurationTypes = viewModel.configurationTypes |
|
|
|
let configurationTypes = viewModel.configurationTypes |
|
|
|
if let indexPath = configurationTypes.index(of: .custom).flatMap { IndexPath(row: $0, section: ConfigureTransactionViewModel.Section.configurationTypes.rawValue) }, let cell = tableView.cellForRow(at: indexPath) as? GasSpeedTableViewCell { |
|
|
|
if let indexPath = configurationTypes.index(of: .custom).flatMap({ IndexPath(row: $0, section: ConfigureTransactionViewModel.Section.configurationTypes.rawValue) }), let cell = tableView.cellForRow(at: indexPath) as? GasSpeedTableViewCell { |
|
|
|
cell.configure(viewModel: viewModel.gasSpeedViewModel(indexPath: indexPath)) |
|
|
|
cell.configure(viewModel: viewModel.gasSpeedViewModel(indexPath: indexPath)) |
|
|
|
} |
|
|
|
} |
|
|
|
showGasPriceWarning() |
|
|
|
showGasPriceWarning() |
|
|
@ -530,7 +530,7 @@ extension UIBarButtonItem { |
|
|
|
|
|
|
|
|
|
|
|
static func saveBarButton(_ target: AnyObject, selector: Selector) -> UIBarButtonItem { |
|
|
|
static func saveBarButton(_ target: AnyObject, selector: Selector) -> UIBarButtonItem { |
|
|
|
.init(title: R.string.localizable.save(), style: .plain, target: target, action: selector) |
|
|
|
.init(title: R.string.localizable.save(), style: .plain, target: target, action: selector) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static func backBarButton(selectionClosure: @escaping () -> Void) -> UIBarButtonItem { |
|
|
|
static func backBarButton(selectionClosure: @escaping () -> Void) -> UIBarButtonItem { |
|
|
|
let barButton = UIBarButtonItem(image: R.image.backWhite(), style: .plain, target: nil, action: nil) |
|
|
|
let barButton = UIBarButtonItem(image: R.image.backWhite(), style: .plain, target: nil, action: nil) |
|
|
@ -556,5 +556,5 @@ extension UIBarButtonItem { |
|
|
|
|
|
|
|
|
|
|
|
@objc func didTapButton(_ sender: Any) { |
|
|
|
@objc func didTapButton(_ sender: Any) { |
|
|
|
selectionClosure?() |
|
|
|
selectionClosure?() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|