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

update 11_StaticCall readme.md #107

Closed jackleeio closed 1 year ago

jackleeio commented 1 year ago
  1. Fix description error;
  2. Fix the error:

Error: ENS resolution requires a provider (operation="resolveName", code=UNSUPPORTED_OPERATION, version=6.7.1)

caused by line const tx = await contractDAI.transfer.staticCall("vitalik.eth", ethers.parseEther("10000"), {from: "vitalik.eth"}) An error is reported when the from parameter is a ENS domain, which should be an address.

AmazingAng commented 1 year ago

Its weired, ethers should resolve ens name to address by default. I will recheck it.