hardhat 不支持 https 导入。在使用 npm 安装 openzeppelin 和 chainlink 并使用@openzeppelin/@chainlink 后,我们会遇到 pragma/compiler 版本问题,即使在 hardhat.config.js 中使用不同的编译器版本,甚至覆盖。您如何使用安全帽和这些导入进行开发和编译?
答案 0 :(得分:1)
在您的 hardhat.config.js
中,您可以添加多个编译器。
module.exports = {
solidity: {
compilers: [
{
version: "0.6.6"
},
{
version: "0.4.24"
}
]
}
}