diff --git a/package-lock.json b/package-lock.json index 01e6233..2c164b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@perawallet/connect-beta", - "version": "2.0.17", + "version": "2.0.18", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@perawallet/connect-beta", - "version": "2.0.17", + "version": "2.0.18", "license": "ISC", "dependencies": { "@evanhahn/lottie-web-light": "5.8.1", diff --git a/package.json b/package.json index a200a38..3e4a0cc 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "2.0.17", + "version": "2.0.18", "name": "@perawallet/connect-beta", "description": "Beta version of Pera Wallet Connect", "main": "dist/index.js", diff --git a/src/PeraWalletConnect.ts b/src/PeraWalletConnect.ts index 91a0509..4c85b17 100644 --- a/src/PeraWalletConnect.ts +++ b/src/PeraWalletConnect.ts @@ -52,8 +52,8 @@ interface PeraWalletConnectOptions { shouldShowSignTxnToast?: boolean; chainId?: AlgorandChainIDs; compactMode?: boolean; - debugger?: boolean; singleAccount?: boolean; + debugger?: boolean; } class PeraWalletConnect { @@ -475,6 +475,8 @@ class PeraWalletConnect { try { try { if (walletDetails?.chainId) { + this.checkPersistedState(this.client!); + const response = await this.client!.request({ topic: this.session!.topic, request: formattedSignTxnRequest,