Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cyan-steaks-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@swapkit/wallet-extensions": patch
---

fix atom not connecting via vultisig due to empty address
2 changes: 1 addition & 1 deletion packages/wallet-extensions/src/vultisig/walletHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export async function getVultisigAddress(chain: Chain) {
await windowProvider.request({ method: "wallet_switch_chain", params: [{ chainId }] });

let account = await windowProvider.request({ method: "get_accounts" });
if (!account) {
if (!account || (Array.isArray(account) && account.length === 0)) {
const connectedAcount = await windowProvider.request({ method: "request_accounts" });
account = connectedAcount[0].address;
}
Expand Down
Loading