区块链
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)> compileCompiling your contracts...===========================> Compiling ./contracts/helloworld.solproject:/contracts/helloworld.sol:4:35: TypeError: Data location must原创 2021-09-17 20:29:43 · 927 阅读 · 0 评论 -
Uncaught TypeError: web3.toWei is not a function
在进行单位转换时出现如下错误:evalmachine.<anonymous>:0acount=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 · 435 阅读 · 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 · 3605 阅读 · 2 评论