From dc418ce8893e923874363fafc0f782ed91a325a8 Mon Sep 17 00:00:00 2001 From: aelf-lxy Date: Mon, 12 Aug 2024 16:01:05 +0800 Subject: [PATCH] feat: in telegram, unlock before logout --- packages/base/package.json | 2 +- packages/bridge/package.json | 2 +- packages/bridge/src/ui.tsx | 1 + packages/react/package.json | 2 +- packages/utils/package.json | 2 +- packages/wallets/night-elf/package.json | 2 +- packages/wallets/portkey-aa/package.json | 2 +- packages/wallets/portkey-discover/package.json | 2 +- 8 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/base/package.json b/packages/base/package.json index 6aef30d5..8770089e 100644 --- a/packages/base/package.json +++ b/packages/base/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/wallet-adapter-base", - "version": "0.1.3-alpha.17", + "version": "0.1.3-alpha.18", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/bridge/package.json b/packages/bridge/package.json index d67514f3..528b44e4 100755 --- a/packages/bridge/package.json +++ b/packages/bridge/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/wallet-adapter-bridge", - "version": "0.1.3-alpha.17", + "version": "0.1.3-alpha.18", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/bridge/src/ui.tsx b/packages/bridge/src/ui.tsx index fa807900..fd0e4ea6 100644 --- a/packages/bridge/src/ui.tsx +++ b/packages/bridge/src/ui.tsx @@ -251,6 +251,7 @@ const SignInModal: React.FC = (props: ISignInModalProps) => { } console.log('begin to init and execute handleTelegram', TelegramPlatform.isTelegramPlatform()); const handleLogout = async () => { + await bridgeInstance.onPortkeyAAUnLock(DEFAULT_PIN); await bridgeInstance.doubleCheckDisconnect(); }; TelegramPlatform.initializeTelegramWebApp({ handleLogout }); diff --git a/packages/react/package.json b/packages/react/package.json index 32b3ac06..321bebf4 100755 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/wallet-adapter-react", - "version": "0.1.3-alpha.17", + "version": "0.1.3-alpha.18", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/utils/package.json b/packages/utils/package.json index 15e04ea7..fd63d6b0 100755 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/utils", - "version": "0.1.3-alpha.17", + "version": "0.1.3-alpha.18", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/wallets/night-elf/package.json b/packages/wallets/night-elf/package.json index 0ab159ab..8e02b6b0 100755 --- a/packages/wallets/night-elf/package.json +++ b/packages/wallets/night-elf/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/wallet-adapter-night-elf", - "version": "0.1.3-alpha.17", + "version": "0.1.3-alpha.18", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/wallets/portkey-aa/package.json b/packages/wallets/portkey-aa/package.json index 4b54dbe7..7abbb97b 100755 --- a/packages/wallets/portkey-aa/package.json +++ b/packages/wallets/portkey-aa/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/wallet-adapter-portkey-aa", - "version": "0.1.3-alpha.17", + "version": "0.1.3-alpha.18", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/wallets/portkey-discover/package.json b/packages/wallets/portkey-discover/package.json index 25c5a10d..85172da1 100755 --- a/packages/wallets/portkey-discover/package.json +++ b/packages/wallets/portkey-discover/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/wallet-adapter-portkey-discover", - "version": "0.1.3-alpha.17", + "version": "0.1.3-alpha.18", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js",