1. truffle test 报错 ReferenceError: regeneratorRuntime is not defined

解决方法:输入以下命令,并且改配置文件

以太坊truffle开发问题记录(不断更新)

参考:https://stackoverflow.com/questions/33527653/babel-6-regeneratorruntime-is-not-defined

 

2. truffle compile 报错  Compilation error: Stack too deep

解决方法:The limit of having not more than 16 local variables could be a problem here. 

函数里不能超过16个局部变量,需要检查报错的函数,减少局部变量个数。

 

3.  truffle migrate 报错  Attempting to run transaction which calls a contract function, but recipient address 0x44654655b0c7097050754d8aa0b03f7ed85e8c26 is not acontract address

解决方法:使用 truffle migrate --reset

相关文章:

  • 2021-09-13
  • 2021-06-06
  • 2021-09-18
  • 2022-12-23
  • 2022-02-24
  • 2021-06-05
  • 2021-05-16
猜你喜欢
  • 2021-06-01
  • 2021-04-19
  • 2022-01-01
  • 2021-12-02
  • 2021-10-04
  • 2021-12-04
  • 2021-12-17
相关资源
相似解决方案