Skip to content

Commit

Permalink
Merge pull request #173 from AElfProject/feature/ecoEarn-support
Browse files Browse the repository at this point in the history
fix: Do not enable acceleration function when scanning to log in
  • Loading branch information
aelf-lxy authored Oct 24, 2024
2 parents 0cebaec + f2aa6e2 commit 7a7a660
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 11 deletions.
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

0 comments on commit 7a7a660

Please sign in to comment.