Skip to content

Commit 7c173a1

Browse files
committed
Make sure tranport is created before get accounts
1 parent 6677278 commit 7c173a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/modules/select/wallets/ledger.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ async function ledgerProvider(options: {
274274
return addresses()
275275
}
276276

277+
if (!eth) {
278+
await createTransport()
279+
}
280+
277281
if (dPath === '') {
278282
dPath = LEDGER_LIVE_PATH
279283
}

0 commit comments

Comments
 (0)