stack_wallet/lib/wallets/example/libepiccash.dart

22 lines
562 B
Dart
Raw Normal View History

2023-09-18 21:56:57 +00:00
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;
}
}
}