@wallet01/core
Advanced tools
Comparing version 0.6.4 to 0.6.5
# @wallet01/core | ||
## 0.6.5 | ||
### Patch Changes | ||
- Fixed autoconnection state errors in edge-cases | ||
## 0.6.4 | ||
@@ -4,0 +10,0 @@ |
import { | ||
Client | ||
} from "../chunk-3TJXNSIW.js"; | ||
} from "../chunk-DMDDQH2A.js"; | ||
import "../chunk-5PL23P3E.js"; | ||
@@ -5,0 +5,0 @@ import "../chunk-5PBDKPYG.js"; |
@@ -10,3 +10,3 @@ import "./chunk-RZMIDZ2N.js"; | ||
Client | ||
} from "./chunk-3TJXNSIW.js"; | ||
} from "./chunk-DMDDQH2A.js"; | ||
import "./chunk-5PL23P3E.js"; | ||
@@ -13,0 +13,0 @@ import { |
{ | ||
"name": "@wallet01/core", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
@@ -17,3 +17,2 @@ import { BaseConnector } from "../types"; | ||
this.setConnectors(connectors); | ||
// this.setAddress('INITNIT'); | ||
@@ -23,5 +22,11 @@ if (localStorage.getItem("autoConnect") === null) | ||
if (localStorage.getItem("autoConnect") === "false") | ||
this.setIsAutoConnecting(false); | ||
if (localStorage.getItem("autoConnect") !== String(autoConnect)) | ||
localStorage.setItem("autoConnect", String(autoConnect)); | ||
if (!localStorage.getItem("lastUsedConnector")) | ||
this.setIsAutoConnecting(false); | ||
if ( | ||
@@ -44,2 +49,6 @@ localStorage.getItem("lastUsedConnector") && | ||
const lastConnName = localStorage.getItem("lastUsedConnector"); | ||
if (!lastConnName) { | ||
this.setIsAutoConnecting(false); | ||
return; | ||
} | ||
@@ -46,0 +55,0 @@ const connector = this.getConnectors().find( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
52490
1197