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: 修改第5第7章中测试网WETH的地址 #162

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion 05_WriteContract/WriteContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const abiWETH = [
"function withdraw(uint) public",
];
// WETH合约地址(Goerli测试网)
const addressWETH = '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6'
const addressWETH = '0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9'
// WETH Contract

// 声明可写合约
Expand Down
2 changes: 1 addition & 1 deletion 05_WriteContract/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ await tx.wait()
"function withdraw(uint) public",
];
// WETH合约地址(Goerli测试网)
const addressWETH = '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6' // WETH Contract
const addressWETH = '0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14' // WETH Contract

// 声明可写合约
const contractWETH = new ethers.Contract(addressWETH, abiWETH, wallet)
Expand Down
2 changes: 1 addition & 1 deletion 07_Event/Event.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const abiWETH = [
];

// 测试网WETH地址
const addressWETH = '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6'
const addressWETH = '0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14'
// 声明合约实例
const contract = new ethers.Contract(addressWETH, abiWETH, provider)

Expand Down
2 changes: 1 addition & 1 deletion 07_Event/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const transferEvents = await contract.queryFilter('事件名', 起始区块, 结

```js
// 测试网WETH地址
const addressWETH = '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6'
const addressWETH = '0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14'
// 声明合约实例
const contract = new ethers.Contract(addressWETH, abiWETH, provider)
```
Expand Down