I am trying to compile this smart contract (fluxAggregator) to setup a Flux-Monitor within VS Code using brownie:
Brownie v1.19.0, Python v3.9.13, Node.JS v16.14.2, NPM v8.13.1
Within the import code lines in the smart contract, I have replaced the paths with
Then my execution commands are:
brownie init npm install @chainlink/contracts --save brownie compile
Once I compile, I get this error returned.
UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x81 in position 5029: character maps to
brownie-config.yaml which is located in the root directory of the working directory contains:
dotenv: .env dependencies: - smartcontractkit/[email protected] compiler: solc: remappings: - "@chainlink=smartcontractkit/[email protected]"
And finally, the VS Code Solidity extension warns me that the source file requires a different compiler version (current compiler is 0.8.9….). To fix this I change the workspace compiler version to the same as the smart contract (v0.6.6). But I still receive the Decode error message upon compiling.