【发布时间】:2021-10-07 11:21:27
【问题描述】:
我安装了npm install @openzeppelin/contracts --save-dev 以使用令牌erc1155,我的项目在所有智能合约的0.5.0 版本上运行,erc1155 使用的是0.8.0,我收到此错误Error: Truffle is currently using solc 0.5.16, but one or more of your contracts specify "pragma solidity ^0.8.0". 是@ 的任何版本987654325@ for erc1155 使用 sol 0.5.0 吗?
【问题讨论】:
标签: solidity smartcontracts openzeppelin