Error

1
2
3
4
5
6
7
\node_modules\web3-eth-ens\lib\ENS.js:482
            throw new Error("ENS is not supported on network " + networkType);
                  ^

Error: ENS is not supported on network private
    at ENS.checkNetwork (\node_modules\web3-eth-ens\lib\ENS.js:482:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) 

原因

将web3实例作为参数,误传给函数,导致web3实例对应的内存被踩,后面使用该web3实例导致出现上面的问题。

(end)