diff --git a/05_WriteContract/WriteContract.js b/05_WriteContract/WriteContract.js index e3d0cd7..6af5fce 100644 --- a/05_WriteContract/WriteContract.js +++ b/05_WriteContract/WriteContract.js @@ -23,7 +23,7 @@ const abiWETH = [ "function withdraw(uint) public", ]; // WETH合约地址(Goerli测试网) -const addressWETH = '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6' +const addressWETH = '0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9' // WETH Contract // 声明可写合约 diff --git a/05_WriteContract/readme.md b/05_WriteContract/readme.md index e89c282..f1e667f 100644 --- a/05_WriteContract/readme.md +++ b/05_WriteContract/readme.md @@ -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) diff --git a/07_Event/Event.js b/07_Event/Event.js index 0e98558..e2051be 100644 --- a/07_Event/Event.js +++ b/07_Event/Event.js @@ -17,7 +17,7 @@ const abiWETH = [ ]; // 测试网WETH地址 -const addressWETH = '0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6' +const addressWETH = '0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14' // 声明合约实例 const contract = new ethers.Contract(addressWETH, abiWETH, provider) diff --git a/07_Event/readme.md b/07_Event/readme.md index b77fd8d..4def5e3 100644 --- a/07_Event/readme.md +++ b/07_Event/readme.md @@ -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) ```