mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
v5.6.0 Early RC (#2647)
* v5.6.0 Early RC - EVM enhancements and fee corrections - Auto node switching enhancements - Pay anything enhancements - Sync bar ETA enhancements - Solana fixes * prevent multiple creation of wallets by spam tapping the button * Last RC :3 Improve wallets performance Litecoin and MWEB support in Cupcake Ethereum and EVM chains enhancements Improved EVM fee estimation Improvements for AnyPay Better automatic node switching New navbar/tab navigation WalletConnect enhancements Add Dark and tintable app icons Bug fixes * fix: properly prevent create function from being called multiple times at once (#2679) --------- Co-authored-by: cyan <cyjan@mrcyjanek.net>
This commit is contained in:
@@ -64,9 +64,24 @@ abstract class WalletCreationVMBase with Store {
|
||||
|
||||
Future<bool> typeExists(WalletType type) => walletCreationService.typeExists(type);
|
||||
|
||||
bool _isCreating = false;
|
||||
Future<void> create({dynamic options}) async {
|
||||
try {
|
||||
if (_isCreating) {
|
||||
printV("not creating because we don't feel like doing so");
|
||||
return;
|
||||
}
|
||||
_isCreating = true;
|
||||
await _create(options: options);
|
||||
} finally {
|
||||
_isCreating = false;
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _create({dynamic options}) async {
|
||||
final type = this.type;
|
||||
try {
|
||||
|
||||
state = IsExecutingState();
|
||||
if (name.isEmpty) {
|
||||
name = await generateName();
|
||||
|
||||
Reference in New Issue
Block a user