mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix: wallet grouping eating wallets (#2203)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:cake_wallet/entities/hash_wallet_identifier.dart';
|
||||
import 'package:cake_wallet/entities/wallet_group.dart';
|
||||
import 'package:cw_core/wallet_base.dart';
|
||||
@@ -33,7 +35,11 @@ class WalletManager {
|
||||
}
|
||||
|
||||
// Fallback to old logic
|
||||
return walletInfo.parentAddress ?? walletInfo.address;
|
||||
final address = walletInfo.parentAddress ?? walletInfo.address;
|
||||
if (address.isEmpty) {
|
||||
return Random().nextInt(100000).toString();
|
||||
}
|
||||
return address;
|
||||
}
|
||||
|
||||
WalletGroup _getOrCreateGroup(String groupKey) {
|
||||
|
||||
Reference in New Issue
Block a user