From e24d697c6ded6b7f051c4c477b3cab1115362d5e Mon Sep 17 00:00:00 2001 From: Nabarun Date: Mon, 5 May 2025 11:28:08 +0000 Subject: [PATCH] Upgrade package version to `0.1.5` (#29) Part of https://www.notion.so/Gentx-like-attestation-mechanism-to-add-validators-at-genesis-time-19da6b22d47280ecbf1fe657c241ff59 Reviewed-on: https://git.vdb.to/LaconicNetwork/laconic-wallet-web/pulls/29 Co-authored-by: Nabarun Co-committed-by: Nabarun --- package.json | 2 +- src/hooks/useGetOrCreateAccounts.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f44f06f..527e2a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web-wallet", - "version": "0.1.4", + "version": "0.1.5", "private": true, "dependencies": { "@cerc-io/registry-sdk": "^0.2.5", diff --git a/src/hooks/useGetOrCreateAccounts.ts b/src/hooks/useGetOrCreateAccounts.ts index b00c55d..2a111d9 100644 --- a/src/hooks/useGetOrCreateAccounts.ts +++ b/src/hooks/useGetOrCreateAccounts.ts @@ -46,10 +46,12 @@ const useGetOrCreateAccounts = () => { } const accountsData = await getOrCreateAccountsForChain(event.data.chainId); + const accountsAddressList = accountsData.map(account => account.address); + console.log('Sending WALLET_ACCOUNTS_DATA accounts:', accountsAddressList); sendMessage( event.source as Window, 'WALLET_ACCOUNTS_DATA', - accountsData.map(account => account.address), + accountsAddressList, event.origin ); };