From 2cc751f9d2c5cf692f8cc2cf6b078d7f5ffd134c Mon Sep 17 00:00:00 2001 From: AlienTornadosaurusHex <> Date: Thu, 22 Jun 2023 22:00:36 +0000 Subject: [PATCH] set proper names for indexed db stores Signed-off-by: AlienTornadosaurusHex <> --- plugins/idb.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/idb.js b/plugins/idb.js index 38e6292..156ba35 100644 --- a/plugins/idb.js +++ b/plugins/idb.js @@ -264,24 +264,24 @@ export default async (ctx, inject) => { Object.keys(tokens[token].instanceAddress).forEach((amount) => { if (nativeCurrency === token && netId === 1) { stores.push({ - name: `stringify_bloom_${token}_${amount}`, + name: `stringify_bloom_${netId}_${token}_${amount}`, keyPath: 'hashBloom' }) } stores.push( { - name: `deposits_${token}_${amount}`, + name: `deposits_${netId}_${token}_${amount}`, keyPath: 'leafIndex', // the key by which it refers to the object must be in all instances of the storage indexes: DEPOSIT_INDEXES }, { - name: `withdrawals_${token}_${amount}`, + name: `withdrawals_${netId}_${token}_${amount}`, keyPath: 'blockNumber', indexes: WITHDRAWAL_INDEXES }, { - name: `stringify_tree_${token}_${amount}`, + name: `stringify_tree_${netId}_${token}_${amount}`, keyPath: 'hashTree' } )