File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
public/content/developers/docs/apis/javascript Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ Using providers, these libraries allow you to connect to Ethereum and read its d
29
29
** Ethers example**
30
30
31
31
``` js
32
- // A Web3Provider wraps a standard Web3 provider, which is
32
+ // A BrowserProvider wraps a standard Web3 provider, which is
33
33
// what MetaMask injects as window.ethereum into each page
34
- const provider = new ethers.providers.Web3Provider (window .ethereum )
34
+ const provider = new ethers.BrowserProvider (window .ethereum )
35
35
36
36
// The MetaMask plugin also allows signing transactions to
37
37
// send ether and pay to change state within the blockchain.
@@ -80,7 +80,7 @@ Here's an examples from Ethers
80
80
// Create a wallet instance from a mnemonic...
81
81
mnemonic =
82
82
" announce room limb pattern dry unit scale effort smooth jazz weasel alcohol"
83
- walletMnemonic = Wallet .fromMnemonic (mnemonic)
83
+ walletMnemonic = Wallet .fromPhrase (mnemonic)
84
84
85
85
// ...or from a private key
86
86
walletPrivateKey = new Wallet (walletMnemonic .privateKey )
You can’t perform that action at this time.
0 commit comments