摘要: 运行 truffle migrate 报错 *** Deployment Failed *** "TestT**" hit an invalid opcode while deploying. Try: * Verifying that your constructor params satisfy 阅读全文
posted @ 2024-10-04 16:36 apeNote 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 运行 truffle compile 报错 Error: Truffle is currently using solc 0.8.13, but one or more of your contracts specify "pragma solidity ^0.8.20". 修改 truffle-c 阅读全文
posted @ 2024-10-04 16:25 apeNote 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 运行以下 // SPDX-License-Identifier: MIT pragma solidity 0.7.5; import {Counters} from "@openzeppelin/contracts/utils/Counters.sol"; contract MyToken is E 阅读全文
posted @ 2024-10-04 08:55 apeNote 阅读(10) 评论(0) 推荐(0) 编辑