mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 02:07:43 +00:00
added mutex since only one epic cash wallet can/should be active at a time
This commit is contained in:
parent
8ec22ed389
commit
781e2262b5
1 changed files with 5 additions and 0 deletions
|
@ -8,6 +8,11 @@ import 'package:mutex/mutex.dart';
|
|||
/// Should all be static calls (no state stored in this class)
|
||||
///
|
||||
abstract class LibEpiccash {
|
||||
static final Mutex _mutex = Mutex();
|
||||
|
||||
///
|
||||
/// Check if [address] is a valid epiccash address according to libepiccash
|
||||
///
|
||||
static bool validateSendAddress({required String address}) {
|
||||
final String validate = lib_epiccash.validateSendAddress(address);
|
||||
if (int.parse(validate) == 1) {
|
||||
|
|
Loading…
Reference in a new issue