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

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

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

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

参考:https://*.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