CompilerError:叠得太深了。尝试使用--via-ir (cli)或等效的viaIR: true (标准JSON)进行编译,同时启用优化器。否则,尝试删除局部变量。编译内联程序集时:变量dataEnd在堆栈中太深了一个槽。
constructor(address _escrow, uint256 _Presale_Start_Countdown, uint256 _Presale_End_Countdown, uint256 _Softcap_End_Countdown, uint256 _Hardcap_End_Countdown, address _funder1,
address _funder2, address _funder3, address _Development, address _Marketing, address _Community, address _TokenStability, uint256 _DropTokens ) public {
Presale_Start_Countdown = _Presale_Start_Countdown;
Presale_End_Countdown = _Presale_End_Countdown;
require(_escrow != address(0));
escrow = _escrow;
DropTokens = _DropTokens;
presaleSupply_ = 3000000000000000000000000;
funder1 = _funder1;
funder2 = _funder2;
funder3 = _funder3;
Development = _Development;
Marketing = _Marketing;
Community = _Community;
TokenStability =_TokenStability;
balance[escrow] += DropTokens;
balance[escrow] += presaleSupply_;
}发布于 2022-08-02 10:58:14
为什么构造函数中有很多参数?,我建议您在构造函数中设置重要参数,然后可以通过set方法设置其他参数,也可以只通过所有者修饰符检查set函数。
https://stackoverflow.com/questions/73206279
复制相似问题