truffle compile 失败 版本问题
在truffle-config.js里增加配置节

compilers: {
  solc: {
    version: "0.8.15" // 或者你想要的Solidity版本
  }
}
For example, "name@something.com". If someone replies to you it will be via email.
For example, "http://someaddress.com"