mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 09:57:46 +00:00
22 lines
No EOL
527 B
Dart
22 lines
No EOL
527 B
Dart
import 'package:flutter/services.dart';
|
|
|
|
const channel = MethodChannel('com.cake_wallet/native_utils');
|
|
|
|
Future<String> fetchUnstoppableDomainAddress(String domain, String ticker) async {
|
|
var address = '';
|
|
|
|
try {
|
|
address = await channel.invokeMethod<String>(
|
|
'getUnstoppableDomainAddress',
|
|
<String, String> {
|
|
'domain' : domain,
|
|
'ticker' : ticker
|
|
}
|
|
) ?? '';
|
|
} catch (e) {
|
|
print('Unstoppable domain error: ${e.toString()}');
|
|
address = '';
|
|
}
|
|
|
|
return address;
|
|
} |