以下是部署时的提示
Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
Returned error: {“jsonrpc”:“2.0”,“error”:“VM Exception while processing transaction: invalid opcode”,“id”:922399637539502}
如果强行部署,可正确唤醒钱包,但会显示合约部署失败,以下是错误信息:
creation of BalanceManage errored: Returned error: {“jsonrpc”:“2.0”,“error”:"[ethjs-query] while formatting outputs from RPC ‘{“value”:{“code”:-32603,“data”:{“message”:“VM Exception while processing transaction: invalid opcode”,“code”:-32000,“data”:{“0x04bd2818c2eb8a6d789d898623b91b5dbc0fa116d41988d03b086bb6dd9597cb”:{“error”:“invalid opcode”,“program_counter”:176,“return”:“0x”},“stack”:“c: VM Exception while processing transaction: invalid opcode\n at Function.c.fromResults (/usr/local/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:4:192416)\n at w.processBlock (/usr/local/lib/node_modules/ganache-cli/build/ganache-core.node.cli.js:42:50915)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)”,“name”:“c”}}}}’",“id”:922399637539586}
换成老师在视频里使用的0.8.18版本则没有报错,不知道是为什么
0.8.19版本同样不会报错,于是我在这里 https://github.com/ethereum/solidity/releases 主要查看了0.8.20的改变,却没有发现和报错有关信息,请问遇到这种问题应该怎么办