From 0df8b7783f5875a230e8ee7964eb2257da0271a9 Mon Sep 17 00:00:00 2001 From: Michael Pretorius Date: Thu, 22 Jun 2023 19:35:21 +0200 Subject: [PATCH] fix: fix client sequence localstorage function --- package.json | 2 +- src/stargate_client/store.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ecd52930..bf738930 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ixo/impactxclient-sdk", - "version": "1.1.8", + "version": "1.1.9", "description": "One ixo client to rule them all, One ixo client to find, One ixo client to bring them all, and in impact bind them", "author": "Ixo ", "homepage": "https://github.com/ixofoundation/ixo-MultiClient-SDK#readme", diff --git a/src/stargate_client/store.ts b/src/stargate_client/store.ts index 0af189b6..155b7661 100644 --- a/src/stargate_client/store.ts +++ b/src/stargate_client/store.ts @@ -42,7 +42,8 @@ export const getSignerData = async ( let data = storageFunctions.getLocalData(SignerStoreKey) || {}; let now = new Date(); - if (!data[chainId] || !data[chainId][accountNumber]) { + if (!data[chainId]) data[chainId] = {}; + if (!data[chainId][accountNumber]) { data[chainId][accountNumber] = { sequence: sequence, updated: now.toISOString(),