![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
区块链
ZhInen丶
西安电子科技大学2020级计算机硕士研究生
展开
-
TypeError: Data location must be “memory“ for return parameter in function, but none was given.
When I depoly the contract, I get the following error: truffle(develop)> compile Compiling your contracts... =========================== > Compiling ./contracts/helloworld.sol project:/contracts/helloworld.sol:4:35: TypeError: Data location must原创 2021-09-17 20:29:43 · 940 阅读 · 0 评论 -
Uncaught TypeError: web3.toWei is not a function
在进行单位转换时出现如下错误: evalmachine.<anonymous>:0 acount=web3.toWei('30','ether'); ^ Uncaught TypeError: web3.toWei is not a function at evalmachine.<anonymous>:0:13 at sigintHandlersWrap (vm.js:273:12) at Script.runInContext原创 2021-09-17 20:05:42 · 445 阅读 · 0 评论 -
MetaMask - RPC Error: Error: [ethjs-query] while formatting outputs from RPC
I think the problem here is that when you "truffle deploy --reset", the Ganache blockchain expects each user's "program_counter" to start at 0 again. Therefore, you must also restart program_counter on your Metamask account. Metamask Settings -> Advance原创 2021-09-20 15:16:32 · 3618 阅读 · 2 评论