Skip to content

Lesson 12: CompilerError #195

Answered by cromewar
toddabraham asked this question in Q&A
Oct 14, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Do not forget to set up your brownie-config.yaml and set the oppenzepelin replacement for the solc compiler, something like this:

dependencies:
  - OpenZeppelin/openzeppelin-contracts@3.4.0
compiler:
  solc:
    remappings:
      - '@openzeppelin=OpenZeppelin/openzeppelin-contracts@3.4.0'

If no thing works you can always install the npm module for openzeppelin using:

npm install @openzeppelin/contracts

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@toddabraham
Comment options

@PatrickAlphaC
Comment options

@toddabraham
Comment options

Answer selected by PatrickAlphaC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants