From d10ea812db20da23329761ddf1622949641f83b3 Mon Sep 17 00:00:00 2001 From: Theo Date: Mon, 28 Aug 2023 02:54:44 -0700 Subject: [PATCH] Fix saving bloom to IDB for sidechains & clarify logs for encrypted notes account loading --- modules/account/store/actions/checkExistAccount.js | 2 +- plugins/idb.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/account/store/actions/checkExistAccount.js b/modules/account/store/actions/checkExistAccount.js index 2ae9c1c..f3577a5 100644 --- a/modules/account/store/actions/checkExistAccount.js +++ b/modules/account/store/actions/checkExistAccount.js @@ -21,7 +21,7 @@ export async function checkExistAccount({ getters, dispatch, rootState, rootGett const isExist = Boolean(Array.isArray(events) && Boolean(events.length)) - console.log('isExist', isExist) + console.log('Is encrypted note events exist: ', isExist) dispatch('createMutation', { type: 'CHECK_ACCOUNT', diff --git a/plugins/idb.js b/plugins/idb.js index 156ba35..589c0df 100644 --- a/plugins/idb.js +++ b/plugins/idb.js @@ -262,7 +262,7 @@ export default async (ctx, inject) => { Object.keys(tokens).forEach((token) => { Object.keys(tokens[token].instanceAddress).forEach((amount) => { - if (nativeCurrency === token && netId === 1) { + if (nativeCurrency === token) { stores.push({ name: `stringify_bloom_${netId}_${token}_${amount}`, keyPath: 'hashBloom'