From 781e2262b5a0a5c7f183f1b675bfced5dba1f4e5 Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 20 Sep 2023 17:08:22 -0600 Subject: [PATCH] added mutex since only one epic cash wallet can/should be active at a time --- lib/wallets/example/libepiccash.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/wallets/example/libepiccash.dart b/lib/wallets/example/libepiccash.dart index ca7d44eef..525850acc 100644 --- a/lib/wallets/example/libepiccash.dart +++ b/lib/wallets/example/libepiccash.dart @@ -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) {