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:
Omar Hatem
2025-11-25 22:18:00 +01:00
committed by GitHub
co-authored by cyan
parent 98babacce0
commit 7386e1354a
8 changed files with 44 additions and 17 deletions
+15
View File
@@ -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();