mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 11:39:22 +00:00
CAKE-359 | renamed parse_address_from_domain_alert.dart to extract_address_from_parsed.dart; renamed defineAddress() method to extractAddressFromParsed()
This commit is contained in:
parent
3b649ef682
commit
5389543988
4 changed files with 5 additions and 7 deletions
File diff suppressed because one or more lines are too long
|
@ -3,7 +3,7 @@ import 'package:cake_wallet/entities/parsed_address.dart';
|
|||
import 'package:cake_wallet/entities/sync_status.dart';
|
||||
import 'package:cake_wallet/entities/wallet_type.dart';
|
||||
import 'package:cake_wallet/entities/parse_address_from_domain.dart';
|
||||
import 'package:cake_wallet/src/screens/send/widgets/parse_address_from_domain_alert.dart';
|
||||
import 'package:cake_wallet/src/screens/send/widgets/extract_address_from_parsed.dart';
|
||||
import 'package:cake_wallet/src/widgets/standard_checkbox.dart';
|
||||
import 'package:dotted_border/dotted_border.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
@ -785,7 +785,7 @@ class ExchangePage extends BasePage {
|
|||
Future<String> fetchParsedAddress(
|
||||
BuildContext context, String domain, String ticker) async {
|
||||
final parsedAddress = await parseAddressFromDomain(domain, ticker);
|
||||
final address = await defineAddress(context, parsedAddress);
|
||||
final address = await extractAddressFromParsed(context, parsedAddress);
|
||||
return address;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,10 +3,9 @@ import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
|||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
|
||||
import 'choose_yat_address_alert.dart';
|
||||
|
||||
Future<String> defineAddress(
|
||||
Future<String> extractAddressFromParsed(
|
||||
BuildContext context,
|
||||
ParsedAddress parsedAddress) async {
|
||||
var title = '';
|
|
@ -4,7 +4,7 @@ import 'package:cake_wallet/entities/calculate_fiat_amount_raw.dart';
|
|||
import 'package:cake_wallet/entities/parse_address_from_domain.dart';
|
||||
import 'package:cake_wallet/entities/parsed_address.dart';
|
||||
import 'package:cake_wallet/monero/monero_amount_format.dart';
|
||||
import 'package:cake_wallet/src/screens/send/widgets/parse_address_from_domain_alert.dart';
|
||||
import 'package:cake_wallet/src/screens/send/widgets/extract_address_from_parsed.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:mobx/mobx.dart';
|
||||
|
@ -215,6 +215,6 @@ abstract class OutputBase with Store {
|
|||
final domain = address;
|
||||
final ticker = _wallet.currency.title.toLowerCase();
|
||||
parsedAddress = await parseAddressFromDomain(domain, ticker);
|
||||
extractedAddress = await defineAddress(context, parsedAddress);
|
||||
extractedAddress = await extractAddressFromParsed(context, parsedAddress);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue