Replies: 3 comments
-
首先,你只发报错没人能知道是什么原因导致的。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
代码改成 ethers.formatEther 就可以了 谢谢楼上提示 |
Beta Was this translation helpful? Give feedback.
0 replies
-
改成ethers.formatEther,查一下官方文档。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[Running] node "e:\nodejs\hello.js"
file:///e:/nodejs/hello.js:5
console.log(
ETH Balance of vitalik: ${ethers.utils.formatEther(balance)} ETH
);^
TypeError: Cannot read properties of undefined (reading 'formatEther')
at main (file:///e:/nodejs/hello.js:5:57)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v18.15.0
Beta Was this translation helpful? Give feedback.
All reactions