@depay/web3-wallets-evm 12.3.3 → 12.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/umd/index.evm.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ let wallets = getWallets()
|
|
|
17
17
|
let wallet = wallets[0]
|
|
18
18
|
|
|
19
19
|
wallet.name // MetaMask
|
|
20
|
-
wallet.connect()
|
|
20
|
+
await wallet.connect() // 0x317D875cA3B9f8d14f960486C0d1D1913be74e90
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Demo
|
|
@@ -117,7 +117,7 @@ await wallet.account() // '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'
|
|
|
117
117
|
|
|
118
118
|
### Connect an account
|
|
119
119
|
|
|
120
|
-
`async connect():
|
|
120
|
+
`async connect():string`: Connects account. Potentially opens wallet connect screen. Provides connected account in async return. If wallet fails to connect, it returns `undefined`.
|
|
121
121
|
|
|
122
122
|
```javascript
|
|
123
123
|
await wallet.connect() // '0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B'
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -22391,7 +22391,7 @@
|
|
|
22391
22391
|
this.connectedAccounts = accounts;
|
|
22392
22392
|
this.connectedChainId = chainId;
|
|
22393
22393
|
|
|
22394
|
-
return accounts
|
|
22394
|
+
return accounts[0]
|
|
22395
22395
|
} catch (error) {
|
|
22396
22396
|
console.log('WALLETCONNECT ERROR', error);
|
|
22397
22397
|
return undefined
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-evm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "12.3.
|
|
4
|
+
"version": "12.3.5",
|
|
5
5
|
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
|
|
6
6
|
"main": "dist/umd/index.evm.js",
|
|
7
7
|
"module": "dist/esm/index.evm.js",
|