我有一个简单的布朗尼项目,其中有一个deploy.py和一个solidity文件。两个项目都很好。即使我删除了两个文件中的内容,我也会收到同样的错误。
dictionary update sequence element #0 has length 1; 2 is required
这是我的Solidity文件:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
contract Test {
AggregatorV3Interface internal priceFeed;
constructor() public {
priceFeed = AggregatorV3Interface(
0x9326BFA02ADD2366b30bacB125260Af641031331
);
function getCurrentPrice() public view returns (int256) {
(, int256 price, , , ) = priceFeed.latestRoundData();
return price;
}
}
我明白了。我的browne-config.yaml文件中有一个拼写错误。而不是/I需要a=。
我有:
dependencies:
- smartcontractkit/chainlink@1.0.1
compiler:
solc:
remappings:
- "@chainlink/smartcontractkit/chainlink@1.0.1"
应该是:
dependencies:
- smartcontractkit/chainlink@1.0.1
compiler:
solc:
remappings:
- "@chainlink=smartcontractkit/chainlink@1.0.1"