WTFAcademy / WTF-Ethers

我最近在重新学ethers.js,巩固一下细节,也写一个“WTF Ethers.js极简入门”,供小白们使用,每周更新1-3讲。Now supports English! 官网: https://wtf.academy
https://wtf.academy
Other
3.11k stars 507 forks source link

11_StaticCall 部分代码有误 #105

Open gstarkg opened 1 year ago

gstarkg commented 1 year ago

// 3. 用staticCall尝试调用transfer转账10000 DAI,msg.sender为测试钱包地址,交易将失败 console.log("\n3. 用staticCall尝试调用transfer转账1 DAI,msg.sender为测试钱包地址") const tx2 = await contractDAI.transfer.staticCall("vitalik.eth", ethers.parseEther("10000"), {from: address}) console.log(交易会成功吗?:, tx)

console.log中的tx应该为tx2