CompilerError: Stack too deep, try removing local variables.

原因

是一个function里面的变量 数量不能超过(16),包括了入参和返回值。

解决方法

  1. 减少方法内不必要的变量
  2. 使用结构体减少单个变量参数

参考

https://medium.com/1milliondevs/compilererror-stack-too-deep-try-removing-local-variables-solved-a6bcecc16231

,

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享
评论 抢沙发
区块链技术的头像-区块链开发网

昵称

取消
昵称表情代码图片