mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-19 10:41:02 +00:00
21 lines
562 B
Dart
21 lines
562 B
Dart
import 'package:flutter_libepiccash/epic_cash.dart' as lib_epiccash;
|
|
|
|
///
|
|
/// Wrapped up calls to flutter_libepiccash.
|
|
///
|
|
/// Should all be static calls (no state stored in this class)
|
|
///
|
|
abstract class LibEpiccash {
|
|
static bool validateSendAddress({required String address}) {
|
|
final String validate = lib_epiccash.validateSendAddress(address);
|
|
if (int.parse(validate) == 1) {
|
|
// Check if address contains a domain
|
|
if (address.contains("@")) {
|
|
return true;
|
|
}
|
|
return false;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
}
|