mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
CAKE-192 | renamed applyUnstoppableDomainAddress() to getUnstoppableDomainAddress() in the send_page.dart; fixed applyOpenaliasOrUnstoppableDomains() (send_page.dart) and applyUnstoppableDomainAddress() (exchange_page.dart)
This commit is contained in:
@@ -782,7 +782,7 @@ class ExchangePage extends BasePage {
|
||||
|
||||
if (domain.contains('.')) {
|
||||
final name = domain.split('.').last;
|
||||
if (name.isNotEmpty && (name == topLevelDomain)) {
|
||||
if (name == topLevelDomain) {
|
||||
try {
|
||||
final address =
|
||||
await exchangeViewModel.getUnstoppableDomainAddress(domain, ticker);
|
||||
|
||||
@@ -774,7 +774,7 @@ class SendPage extends BasePage {
|
||||
context: context);
|
||||
}
|
||||
|
||||
Future<void> applyUnstoppableDomainAddress(BuildContext context) async {
|
||||
Future<void> getUnstoppableDomainAddress(BuildContext context) async {
|
||||
try {
|
||||
final address = await sendViewModel
|
||||
.getUnstoppableDomainAddress(
|
||||
@@ -798,7 +798,7 @@ class SendPage extends BasePage {
|
||||
final name = address.split('.').last;
|
||||
if (name.isNotEmpty) {
|
||||
if (name == topLevelDomain) {
|
||||
await applyUnstoppableDomainAddress(context);
|
||||
await getUnstoppableDomainAddress(context);
|
||||
} else {
|
||||
await getOpenaliasRecord(context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user