PatrickAlphaC / brownie_fund_me

26 stars 64 forks source link

Issue with compiler version at around 5:11:00 in the video #26

Closed Liam-Hughes closed 2 years ago

Liam-Hughes commented 2 years ago

pragma solidity 0.6.6;

import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";

import "@chainlink/contracts/src/v0.6/vendor/SafeMathChainlink.sol";

No matter what I do, it either shows up as the compiler version being wrong (telling me it needs a different compiler version different to what I have set in the settings.json) or the two links are underlined in red and give me a "not found: file callback not supported" error. I fix one, the other gives me an error. Endlessly.

I've tried changing local and global compiler versions for everything.

I've tried every single solution I've found via googling it, not working.

What am I doing wrong here? Or is one of these links broken...

Liam-Hughes commented 2 years ago

Now I'm not seeing an error when compiling (still seeing Source "@chainlink/contracts/src/v0.6/vendor/SafeMathChainlink.sol" not found: File import callback not supported) on both the smartmath and aggregator v3 import links)

I compile and it shows up fine but there is no build artifact created.

I've gone through and deleted my Build folder, changed the chainlink brownie contracts version to what people have suggested, nothing.

Any ideas?

Liam-Hughes commented 2 years ago

Don't know what I did but it worked. Terribly sorry lads.