mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
minor fix [skip ci]
This commit is contained in:
@@ -429,8 +429,10 @@ class WalletInfo {
|
||||
Future<void> setAddresses(Map<String, String> addresses) async {
|
||||
await WalletInfoAddressMap.deleteByWalletInfoId(internalId);
|
||||
final keys = addresses.keys.toList();
|
||||
for (final address in keys) {
|
||||
await WalletInfoAddressMap.insert(internalId, address, addresses[address]!);
|
||||
final values = addresses.values.toList();
|
||||
// ToDo: check why the addresses list gets changed half way through
|
||||
for (int i = 0; i < keys.length; i++) {
|
||||
await WalletInfoAddressMap.insert(internalId, keys[i], values[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user