Verifying that your constructor params satisfy all assert conditions 部署测试合约失败

 

运行 truffle migrate

报错

 *** Deployment Failed ***

"TestT**" hit an invalid opcode while deploying. Try:
   * Verifying that your constructor params satisfy all assert conditions.
   * Verifying your constructor code doesn't access an array out of bounds.
   * Adding reason strings to your assert statements.

 

看看ganache 的 hardfork 配置

配置 truffle-config.js 

的 setting 版本 evmVersion 也为 london

 部署成功

 

posted @ 2024-10-04 16:36  apeNote  阅读(10)  评论(0编辑  收藏  举报