Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add faucet link #1170

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ export default defineConfig({
url: 'https://github.com/WTFAcademy/WTF-Dapp',
openExternal: true,
},
{
title: 'Faucet',
description: 'Get testnet Sepolia ETH',
url: 'https://zan.top/faucet?chInfo=ch_antdweb3',
openExternal: true,
},
],
},
{
Expand Down Expand Up @@ -246,6 +252,12 @@ export default defineConfig({
url: 'https://github.com/WTFAcademy/WTF-Dapp',
openExternal: true,
},
{
title: '测试网水龙头',
description: '获取测试网 Sepolia ETH',
url: 'https://zan.top/faucet?chInfo=ch_antdweb3',
openExternal: true,
},
],
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/course/contract-compile-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ Click `ABI` to copy and export:

## Deploy

Click `Deploy&Run` to send the transaction to the current `ENVIRONMENT`.
Click `Deploy&Run` to send the transaction to the current `ENVIRONMENT`. Deploying contracts consumes GAS, even on the test network. GAS is paid with ETH from the test network, so you also need to obtain some ETH from the test network through the faucet. For example, you can get Sepolia test network ETH through the [ZAN test network faucet](https://zan.top/faucet?chInfo=ch_antdweb3).

Next, we will try to deploy the contract to the Goerli testnet through MetaMask. Please switch your MetaMask to the Goerli testnet (of course, you can also switch to other testnets you are used to using).
Next, we will try to deploy the contract to the Sepolia testnet through MetaMask. Please switch your MetaMask to the Sepolia testnet (of course, you can also switch to other testnets you are used to using).

Click the drop-down box of `ENVIRONMENT`, you can see many options to choose from, we choose `Injected Provider - MetaMask`.

Expand Down
4 changes: 2 additions & 2 deletions docs/course/contract-compile-deploy.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ order: 3

## 部署

点击 `Deploy&Run` 可以将交易发送到当前的 `ENVIRONMENT` 中。
点击 `Deploy&Run` 可以将交易发送到当前的 `ENVIRONMENT` 中。部署合约需要消耗 GAS,即便是测试网也是如此。GAS 通过测试网的 ETH 支付,所以你还需要通过水龙头获取一些测试网的 ETH。比如你可以通过 [ZAN 的测试网水龙头](https://zan.top/faucet?chInfo=ch_antdweb3)获取 Sepolia 测试网的 ETH。

接下来我们尝试通过 MetaMask 部署合约到测试网 Goerli 中,请先将你的 MetaMask 切换到测试网 Goerli(当然你也可以切换到其它你习惯使用的测试网)。
接下来我们尝试通过 MetaMask 部署合约到测试网 Sepolia 中,请先将你的 MetaMask 切换到测试网 Sepolia(当然你也可以切换到其它你习惯使用的测试网)。

点击`ENVIRONMENT` 的下拉选择框,可以看到有许多的选项可供选择,我们选择 `Injected Provider - MetaMask`。

Expand Down
2 changes: 1 addition & 1 deletion docs/course/contract-dapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default function Web3() {

```

Switch to the Goerli testnet in the DApp page, and if you click the `mint` button, the MetaMask transaction confirmation pop-up window will be triggered if everything goes well:
Switch to the Sepolia testnet in the DApp page, and if you click the `mint` button, the MetaMask transaction confirmation pop-up window will be triggered if everything goes well:

![](./img/mint-test-net.png)

Expand Down
Loading