Home > Blockchain >  Truffle + Ganache debugging problems for the great god
Truffle + Ganache debugging problems for the great god

Time:09-23

Good god, I just contact the etheric fang development, had a lot of kung fu with good environment, intelligent contracts and debugging, STH over and over again for a few hours, have no which friend can help help me with the reason for the error?
Under the truffle unbox MetaCoin code is not modified, the compile directly, after mirgaration executing the following command in the console, always prompt error, thank you very much

Truffle (ganache) & gt; MetaCoin. Deployed (). The getBalance. Call (web3. Eth. Accounts [0])
Thrown:
Evalmachine. & lt; Anonymous> : 0
MetaCoin. Deployed (). The getBalance. Call (web3. Eth. Accounts [0])
^

TypeError: always read the property 'call' of undefined
The at evalmachine. & lt; Anonymous> : 0:31
The at Script. RunInContext (vm. Js: 133:20)
At the runScript (/usr/local/lib/node_modules/truffle/build/cli bundled. Js: 535394:21)
At the Console. Interpret (/usr/local/lib/node_modules/truffle/build/cli bundled. Js: 535409:21)
The at ReplManager. Interpret (/usr/local/lib/node_modules/truffle/build/cli. Bundled. Js: 385867:18)
The at bound (domain. Js: 402:14)
The at REPLServer. RunBound [as eval] (domain. Js: 415:12)
The at REPLServer. OnLine (repl. Js: 642:10)
The at REPLServer. Emit (events. Js: 198:13)
The at REPLServer. EventEmitter. Emit (20) domain. Js: 448:

CodePudding user response:

BBS is too cold and cheerless, no way, to double the truffle shows the club's official website, should is the instance that way under the v5.0, use the let the instance=await MetaCoin. Deployed (after) done
  • Related