@depay/web3-wallets-evm 12.3.4 → 12.3.6
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/esm/index.evm.js +22690 -0
- package/dist/umd/index.evm.js +1 -1
- package/package.json +6 -6
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'
|