We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fd52fa commit 49289e0Copy full SHA for 49289e0
1 file changed
packages/wallet/dapp-client/src/DappClient.ts
@@ -271,9 +271,11 @@ export class DappClient {
271
* for previously established sessions.
272
*/
273
private async _loadStateFromStorage(): Promise<void> {
274
- const implicitSession = await this.sequenceStorage.getImplicitSession()
+ const [implicitSession, explicitSessions] = await Promise.all([
275
+ this.sequenceStorage.getImplicitSession(),
276
+ this.sequenceStorage.getExplicitSessions(),
277
+ ])
278
- const explicitSessions = await this.sequenceStorage.getExplicitSessions()
279
const chainIdsToInitialize = new Set([
280
...(implicitSession?.chainId !== undefined ? [implicitSession.chainId] : []),
281
...explicitSessions.map((s) => s.chainId),
0 commit comments