updateIconsMap method
This method query account icons and set icons to KeyringEVM.store so we can get icon of an account from KeyringEVM instance.
Implementation
Future<void> updateIconsMap(KeyringEVM keyring, [List? addresses]) async {
// final List<String?> ls = [];
// if (addresses != null) {
// ls.addAll(List<String>.from(addresses));
// } else {
// ls.addAll(keyring.keyPairs.map((e) => e.address).toList());
// ls.addAll(keyring.contacts.map((e) => e.address).toList());
// }
//
// if (ls.length == 0) return;
// // get icons from webView.
// final res = await service!.getPubKeyIconsMap(ls);
// // set new icons to Keyring instance.
// if (res != null) {
// final data = {};
// res.forEach((e) {
// data[e[0]] = e[1];
// });
// keyring.store.updateIconsMap(Map<String, String>.from(data));
// }
}