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

部署成功


浙公网安备 33010602011771号