LoginSignup
0
0

【イーサリアムアプリ開発メモ】Unhandled Runtime Error Error: network does not support ENS が出たとき

Posted at

Unhandled Runtime Error Error: network does not support ENS

以下エラー文
Error: network does not support ENS (operation="getEnsAddress", info={ "network": { "chainId": "31337", "name": "unknown" } }, code=UNSUPPORTED_OPERATION, version=6.7.0)
image.png

解決策

どうやらエラーはcontractインスタンスに対して怒っているらしい。

const contract = new ethers.Contract(
        contractAddress,
        artifact.abi,
        provider
      );

ethers.Contractに与えているcontractAddressが存在しないものだったのでテストデプロイした正しいアドレスを指定したら解消できた。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0