Skip to content

Commit b80801f

Browse files
authored
Merge pull request #3822 from NomicFoundation/docs-coinbase-wallet
Add coinbase wallet to docs
2 parents f3eafce + 17e38ed commit b80801f

File tree

7 files changed

+19
-8
lines changed

7 files changed

+19
-8
lines changed

docs/src/content/hardhat-network/docs/metamask-issue/index.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ Incompatible EIP155-based V 2710 and chain id 31337. See the second parameter of
1313

1414
This is because MetaMask mistakenly assumes all networks in `http://127.0.0.1:8545` to have a chain id of `1337`, but Hardhat uses a different number by default. **Please upvote [the MetaMask issue about it](https://github.com/MetaMask/metamask-extension/issues/10290) if you want this fixed.**
1515

16-
In the meantime, to resolve this you can set the `chainId` of Hardhat Network to `1337` in your Hardhat config:
16+
In the meantime, consider using an alternative wallet that doesn't have this problem, like [Coinbase Wallet](https://www.coinbase.com/wallet).
17+
18+
If you want to use MetaMask, you can work around this issue by setting the `chainId` of Hardhat Network to `1337` in your Hardhat config:
1719

1820
```
1921
networks: {

docs/src/content/hardhat-network/docs/overview/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Hardhat Network is simply another network. If you wanted to be explicit, you cou
2929

3030
### Running stand-alone in order to support wallets and other software
3131

32-
Alternatively, Hardhat Network can run in a stand-alone fashion so that external clients can connect to it. This could be MetaMask, your Dapp front-end, or a script. To run Hardhat Network in this way, run:
32+
Alternatively, Hardhat Network can run in a stand-alone fashion so that external clients can connect to it. This could be a wallet, your Dapp front-end, or a script. To run Hardhat Network in this way, run:
3333

3434
```
3535
$ npx hardhat node

docs/src/content/hardhat-runner/docs/getting-started/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Lock with 1 ETH deployed to: 0x5FbDB2315678afecb367f032d93F642f64180aa3
284284

285285
### Connecting a wallet or Dapp to Hardhat Network
286286

287-
By default, Hardhat will spin up a new in-memory instance of Hardhat Network on startup. It's also possible to run Hardhat Network in a standalone fashion so that external clients can connect to it. This could be MetaMask, your Dapp front-end, or a script.
287+
By default, Hardhat will spin up a new in-memory instance of Hardhat Network on startup. It's also possible to run Hardhat Network in a standalone fashion so that external clients can connect to it. This could be a wallet, your Dapp front-end, or a script.
288288

289289
To run Hardhat Network in this way, run `npx hardhat node`:
290290

docs/src/content/hardhat-runner/docs/guides/verifying.md

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ We are going to use the [Sepolia testnet](https://ethereum.org/en/developers/doc
5656
const INFURA_API_KEY = "KEY";
5757

5858
// Replace this private key with your Sepolia account private key
59+
// To export your private key from Coinbase Wallet, go to
60+
// Settings > Developer Settings > Show private key
5961
// To export your private key from Metamask, open Metamask and
6062
// go to Account Details > Export Private Key
6163
// Beware: NEVER put real Ether into testing accounts
@@ -82,6 +84,8 @@ module.exports = {
8284
const ALCHEMY_API_KEY = "KEY";
8385

8486
// Replace this private key with your Sepolia account private key
87+
// To export your private key from Coinbase Wallet, go to
88+
// Settings > Developer Settings > Show private key
8589
// To export your private key from Metamask, open Metamask and
8690
// go to Account Details > Export Private Key
8791
// Beware: NEVER put real Ether into testing accounts

docs/src/content/tutorial/boilerplate-project.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ npm install
4545
npx hardhat node
4646
```
4747

48-
Here we just install the npm project's dependencies, and by running `npx hardhat node` we spin up an instance of Hardhat Network that you can connect to using MetaMask. In a different terminal in the same directory, run:
48+
Here we just install the npm project's dependencies, and by running `npx hardhat node` we spin up an instance of Hardhat Network that you can connect to using your wallet. In a different terminal in the same directory, run:
4949

5050
```
5151
npx hardhat --network localhost run scripts/deploy.js
@@ -61,9 +61,9 @@ npm run start
6161

6262
Then open [http://127.0.0.1:3000/](http://127.0.0.1:3000/) in your browser and you should see this: ![](/front-5.png)
6363

64-
Set your network in MetaMask to `127.0.0.1:8545`.
64+
Click the button to connect your wallet. If you are using MetaMask, make sure you have selected the `Localhost 8545` network.
6565

66-
Now click the button in the web app. You should then see this:
66+
After connecting your wallet, you should see this:
6767

6868
![](/front-2.png)
6969

docs/src/content/tutorial/deploying-to-a-live-network.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ require("@nomicfoundation/hardhat-toolbox");
6363
const INFURA_API_KEY = "KEY";
6464
6565
// Replace this private key with your Sepolia account private key
66+
// To export your private key from Coinbase Wallet, go to
67+
// Settings > Developer Settings > Show private key
6668
// To export your private key from Metamask, open Metamask and
6769
// go to Account Details > Export Private Key
6870
// Beware: NEVER put real Ether into testing accounts
@@ -91,6 +93,8 @@ require("@nomicfoundation/hardhat-toolbox");
9193
const ALCHEMY_API_KEY = "KEY";
9294
9395
// Replace this private key with your Sepolia account private key
96+
// To export your private key from Coinbase Wallet, go to
97+
// Settings > Developer Settings > Show private key
9498
// To export your private key from Metamask, open Metamask and
9599
// go to Account Details > Export Private Key
96100
// Beware: NEVER put real Ether into testing accounts
@@ -116,8 +120,9 @@ We're using [Infura](https://infura.io) or [Alchemy](https://alchemy.com/), but
116120
To deploy on Sepolia you need to send some Sepolia ether to the address that's going to be making the deployment. You can get testnet ether from a faucet, a service that distributes testing-ETH for free. Here is one for Sepolia:
117121

118122
- [Alchemy Sepolia Faucet](https://sepoliafaucet.com/)
123+
- [Coinbase Sepolia Faucet](https://coinbase.com/faucets/ethereum-sepolia-faucet) (only works if you are using the Coinbase Wallet)
119124

120-
You'll have to change Metamask's network to Sepolia before transacting.
125+
You'll have to change your wallet's network to Sepolia before transacting.
121126

122127
:::tip
123128

docs/src/content/tutorial/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ To follow this tutorial you should be able to:
2727
- Operate a [terminal](https://en.wikipedia.org/wiki/Terminal_emulator)
2828
- Use [git](https://git-scm.com/doc)
2929
- Understand the basics of how [smart contracts](https://ethereum.org/learn/#smart-contracts) work
30-
- Set up a [Metamask](https://metamask.io/) wallet
30+
- Set up a [Coinbase](https://www.coinbase.com/wallet) or [Metamask](https://metamask.io/) wallet
3131

3232
If you can't do any of the above, follow the links and take some time to learn the basics.

0 commit comments

Comments
 (0)