From f2aa6e2be4080dd87b9fdb92efd19bb597cb4c93 Mon Sep 17 00:00:00 2001 From: aelf-lxy Date: Thu, 24 Oct 2024 22:12:19 +0800 Subject: [PATCH] fix: Do not enable acceleration function when scanning to log in --- README.md | 4 +++- packages/base/package.json | 2 +- packages/bridge/package.json | 2 +- packages/bridge/src/ui.tsx | 5 +++-- packages/react/package.json | 2 +- packages/starter/src/Demo/demo.tsx | 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 +- 10 files changed, 14 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index a647bb7f..93d8339a 100644 --- a/README.md +++ b/README.md @@ -360,7 +360,9 @@ const Demo = () => { ## getSignature ```ts -const getSignature: (params: TSignatureParams) => Promise<{ `` error: number; `` errorMessage: string; `` signature: string; `` from: string; ``} | null> +const getSignature: ( + params: TSignatureParams, +) => Promise<{ error: number; errorMessage: string; signature: string; from: string } | null>; ``` > Get signature message diff --git a/packages/base/package.json b/packages/base/package.json index 264b56ec..db1a21f3 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.18", + "version": "0.1.19", "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 4a15a269..5db9783d 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.18", + "version": "0.1.19", "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 6d57943c..30af5e96 100644 --- a/packages/bridge/src/ui.tsx +++ b/packages/bridge/src/ui.tsx @@ -337,8 +337,9 @@ const SignInModal: React.FC = (props: ISignInModalProps) => { const onFinishInternal = useCallback( (didWallet: DIDWalletInfo) => { - if (enableAcceleration && didWallet.createType !== 'register') { - console.log('onPortkeyAAWalletLoginFinishedWithAcceleration--------'); + console.log('didWallet.createType', didWallet.createType); + if (enableAcceleration && didWallet.createType === 'recovery') { + console.log('onPortkeyAAWalletLoginFinishedWithAcceleration--------1'); bridgeInstance.onPortkeyAAWalletLoginFinishedWithAcceleration(didWallet); } else { console.log('onPortkeyAAWalletLoginFinished----------'); diff --git a/packages/react/package.json b/packages/react/package.json index 427a9202..1c5b1713 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.18", + "version": "0.1.19", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js", diff --git a/packages/starter/src/Demo/demo.tsx b/packages/starter/src/Demo/demo.tsx index 095b6de1..af47af94 100644 --- a/packages/starter/src/Demo/demo.tsx +++ b/packages/starter/src/Demo/demo.tsx @@ -60,7 +60,7 @@ const baseConfig = { // ConfirmLogoutDialog: CustomizedConfirmLogoutDialog, // SignInComponent: SignInProxy, defaultPin: '111111', - enableAcceleration: false, + enableAcceleration: true, PortkeyProviderProps: { theme: 'light' as any, }, diff --git a/packages/utils/package.json b/packages/utils/package.json index 945c1ab0..1e71e1e1 100755 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@aelf-web-login/utils", - "version": "0.1.18", + "version": "0.1.19", "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 7b957701..ac7eb62e 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.18", + "version": "0.1.19", "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 b6f5c934..343385ce 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.18", + "version": "0.1.19", "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 7ac062c0..d193e028 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.18", + "version": "0.1.19", "type": "module", "main": "dist/esm/index.js", "module": "dist/esm/index.js",