update keys reading

This commit is contained in:
liangping 2023-06-16 13:12:34 +08:00
parent 12dbaee973
commit 4f5c3b648b

View File

@ -25,12 +25,7 @@ const tokenMeta = ref({} as Record<string, AccountEntry>);
const loading = ref(0) const loading = ref(0)
const loaded = ref(0) const loaded = ref(0)
scanLocalKeys().forEach((wallet) => { Object.values(conf.value).forEach((imported) => {
const { data } = fromBech32(wallet.cosmosAddress);
const walletKey = toBase64(data);
let imported = conf.value[walletKey];
// load balance & delegations
if (imported) if (imported)
imported.forEach((x) => { imported.forEach((x) => {
if (x.endpoint && x.address) { if (x.endpoint && x.address) {