smartcontractkit / chainlink-brownie-contracts

A repository for automatically using the latest chainlink repo from the core chainlink repo.
327 stars 69 forks source link

LinkToken.sol version issue (ParserError: Source file requires different compiler version) #9

Closed lzydaphne closed 2 years ago

lzydaphne commented 2 years ago

my compiler use v0.6.6, but this LinkToken.sol use pragma v0.4.11 which caused a ParserError. How can I fix this? image

PatrickAlphaC commented 2 years ago
  1. What version of the chainlink-brownie-contracts are you using?
  2. What command are you running?
  3. Where are you using the link token?
lzydaphne commented 2 years ago

thanks for replying! @PatrickAlphaC And I managed to solve this. The problem is that I specified the solc version in config and forgot to delete it when trying to compile the LinkToken.sol

BTW, I'm really excited to see you planning to make a new video about solidity and js and other fun stuffs🔥
Your course is by far the most informative and comprehensive one that I've taken Can't wait to see the future course come out!!!