Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Do not enable acceleration function when scanning to log in #173

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/base/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 3 additions & 2 deletions packages/bridge/src/ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,9 @@ const SignInModal: React.FC<ISignInModalProps> = (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----------');
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/starter/src/Demo/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const baseConfig = {
// ConfirmLogoutDialog: CustomizedConfirmLogoutDialog,
// SignInComponent: SignInProxy,
defaultPin: '111111',
enableAcceleration: false,
enableAcceleration: true,
PortkeyProviderProps: {
theme: 'light' as any,
},
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/wallets/night-elf/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/wallets/portkey-aa/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/wallets/portkey-discover/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading