You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/src/content/hardhat-network/docs/metamask-issue/index.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,9 @@ Incompatible EIP155-based V 2710 and chain id 31337. See the second parameter of
13
13
14
14
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.**
15
15
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:
Copy file name to clipboardexpand all lines: docs/src/content/hardhat-network/docs/overview/index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ Hardhat Network is simply another network. If you wanted to be explicit, you cou
29
29
30
30
### Running stand-alone in order to support wallets and other software
31
31
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:
Copy file name to clipboardexpand all lines: docs/src/content/hardhat-runner/docs/getting-started/index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -284,7 +284,7 @@ Lock with 1 ETH deployed to: 0x5FbDB2315678afecb367f032d93F642f64180aa3
284
284
285
285
### Connecting a wallet or Dapp to Hardhat Network
286
286
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.
288
288
289
289
To run Hardhat Network in this way, run `npx hardhat node`:
Copy file name to clipboardexpand all lines: docs/src/content/tutorial/boilerplate-project.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ npm install
45
45
npx hardhat node
46
46
```
47
47
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:
49
49
50
50
```
51
51
npx hardhat --network localhost run scripts/deploy.js
@@ -61,9 +61,9 @@ npm run start
61
61
62
62
Then open [http://127.0.0.1:3000/](http://127.0.0.1:3000/) in your browser and you should see this: 
63
63
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.
65
65
66
-
Now click the button in the web app. You should then see this:
66
+
After connecting your wallet, you should see this:
// 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
94
98
// To export your private key from Metamask, open Metamask and
95
99
// go to Account Details > Export Private Key
96
100
// 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
116
120
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:
0 commit comments