Skip to content

Commit

Permalink
Merge pull request #110 from AElfProject/feature/tg-adapt-v1
Browse files Browse the repository at this point in the history
fix: update loginEagerly error text
  • Loading branch information
aelf-lxy authored Jul 19, 2024
2 parents 552c2ed + ef8bcdd commit 06bacb0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,20 @@ import {
WebLoginEvents,
} from 'aelf-web-login';

const props = {
commonConfig:{...},
extraWallets:{['discover', 'elf']},
nightElf:{...},
portkey:{...},
discover: {
...
autoRequestAccount: true, // If set to true, please contact Portkey to add whitelist @Rachel Wei
...
}
}

<PortkeyConfigProvider>
<WebLoginProvider prop={prop} >
<WebLoginProvider {...props} >
<App>
</WebLoginProvider>
</PortkeyConfigProvider>
Expand Down
2 changes: 1 addition & 1 deletion packages/login/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aelf-web-login",
"version": "2.1.1",
"version": "2.1.2",
"main": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/login/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const ERR_CODE = {
export const ERR_CODE_MSG: {
[key: number]: string;
} = {
10001: 'Discover login eagerly fail',
10001: 'Automatic login failed. Please log in manually.',
10002: 'Unmatched network. Please switch the network through "My" > "Wallet" > "Switch Networks" to continue.',
10003: 'Synchronising data on the blockchain. Please wait a few seconds.',
10004: 'User cancel',
Expand Down

0 comments on commit 06bacb0

Please sign in to comment.