From 369b03d70d7330bcd8026c3ebc17649e28ac2381 Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Mon, 16 Oct 2023 11:48:35 -0700 Subject: [PATCH] Return all accounts in getAccounts. --- packages/stateful/components/dao/tabs/AppsTab.tsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/stateful/components/dao/tabs/AppsTab.tsx b/packages/stateful/components/dao/tabs/AppsTab.tsx index 8d6778ea7a..7354786761 100644 --- a/packages/stateful/components/dao/tabs/AppsTab.tsx +++ b/packages/stateful/components/dao/tabs/AppsTab.tsx @@ -210,6 +210,13 @@ export const AppsTab = () => { algo: 'secp256k1', pubkey: await getPubKey(currentChainId), }, + ...(await Promise.all( + Object.entries(polytoneProxies).map(async ([chainId, address]) => ({ + address, + algo: 'secp256k1', + pubkey: await getPubKey(chainId), + })) + )), ] as AccountData[], }), }, @@ -232,6 +239,13 @@ export const AppsTab = () => { algo: 'secp256k1', pubkey: await getPubKey(currentChainId), }, + ...(await Promise.all( + Object.entries(polytoneProxies).map(async ([chainId, address]) => ({ + address, + algo: 'secp256k1', + pubkey: await getPubKey(chainId), + })) + )), ] as AccountData[], }), },