nodejs运行ethers.js错误类型UnhandledPromiseRejectionWarning: Error: name not found

布满荆棘的人生 2021-09-30 14:10 584阅读 0赞

这里错误的的原因是 Error: name not found,你的某些合约地址在初始化的时候为null而产生的错误,所以有时候真是没事自己找事!!!

20190804172620829.png

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MzM0MzE0NA_size_16_color_FFFFFF_t_70

D:\software\nodejs\node.exe D:\www\KirinProject\Business\UniappMakeMoneyFirstApp0512\mvc_model\modules\nodejs_blockchain\main_node.js
(node:15416) UnhandledPromiseRejectionWarning: Error: name not found
at D:\www\KirinProject\Business\UniappMakeMoneyFirstApp0512\mvc_model\modules\nodejs_blockchain\node_modules\ethers\contract.js:302:27
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:15416) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15416) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

发表评论

表情:
评论列表 (有 0 条评论,584人围观)

还没有评论,来说两句吧...

相关阅读