From 884442ff0670d865de75000c400a9b8cb1c71ca1 Mon Sep 17 00:00:00 2001 From: Suraj Singla Date: Mon, 11 Dec 2023 14:35:13 +0530 Subject: [PATCH 1/2] minor fixes for errors --- src/web3Manager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web3Manager.ts b/src/web3Manager.ts index 51a6806..6ae25d8 100644 --- a/src/web3Manager.ts +++ b/src/web3Manager.ts @@ -197,9 +197,9 @@ export default class Web3Manager { console.log(result); let error: any = null; if (result.success) { - this._selectedAddress = result.resp.addresses[0]; + this._selectedAddress = result.resp?.addresses[0]; this._widgetManagerInstance?.hideIframe(); - cb(error, result.resp.addresses); + cb(error, result.resp?.addresses); } else { error = result.error; cb(error, result.error?.message); @@ -215,7 +215,7 @@ export default class Web3Manager { console.log(result); let error: any = null; if (result.success) { - this._signature = result.resp.sign_resp; + this._signature = result.resp?.sign_resp; // this._sendHideWidget(); cb(error, result.resp?.sign_resp); } else { From 7d036eb6ec415516de862d8022ff2db115b2b7cc Mon Sep 17 00:00:00 2001 From: Suraj Singla Date: Mon, 11 Dec 2023 14:37:32 +0530 Subject: [PATCH 2/2] change log updates --- CHANGELOG.md | 6 +++++- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7757a60..18cfac7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -78,4 +78,8 @@ ### 2.0.3 (2023-11-13) -* Connection error fixes and reload page fixes \ No newline at end of file +* Connection error fixes and reload page fixes + +### 2.0.4 (2023-12-11) + +* Undefined error fixes \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5e80732..edc3f1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@getsafle/safle-keyless-js", - "version": "2.0.3", + "version": "2.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@getsafle/safle-keyless-js", - "version": "2.0.3", + "version": "2.0.4", "license": "ISC", "dependencies": { "ethereumjs-util": "^5.2.0", diff --git a/package.json b/package.json index 66a87c1..d1c9954 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@getsafle/safle-keyless-js", - "version": "2.0.3", + "version": "2.0.4", "description": "", "main": "dist/index.js", "scripts": {