SOlidity 课程:Brownie Fund Me 第 6 课:https://github.com/PatrickAlphaC/brownie_fund_me
编译 AggregatorV2V3Interface 会导致 TypeError:接口无法继承。接口我在contract->test下添加了一个文件MockV3Aggregator.sol来部署模拟。但是,当我使用“browniecompile”时,出现以下错误:
PS C:\Users\user\Documents\BC\demos\brownie_fund_me> brownie compile
INFO: Could not find files for the given pattern(s).
Brownie v1.18.1 - Python development framework for Ethereum
Compiling contracts...
Solc version: 0.6.0
Optimizer: Enabled Runs: 200
EVM Version: Istanbul
CompilerError: solc returned the following errors:
C:/Users/user/.brownie/packages/smartcontractkit/chainlink-brownie-
contracts@1.1.1/contracts/src/v0.6/interfaces/AggregatorV2V3Interface.sol:7:38:
TypeError: Interfaces
cannot inherit.
interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface
^-----------------^
C:/Users/user/.brownie/packages/smartcontractkit/chainlink-brownie-
contracts@1.1.1/contracts/src/v0.6/interfaces/AggregatorV2V3Interface.sol:7:59:
TypeError: Interfaces
cannot inherit.
interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface
^-------------------^
Run Code Online (Sandbox Code Playgroud)