Cyfrin / foundry-defi-stablecoin-cu

249 stars 117 forks source link

AggregatorV3Interfacer is error? #94

Closed wzl521 closed 3 months ago

wzl521 commented 3 months ago

I followed the video for installation, but an error occurs when importing, indicating that the file cannot be found。The error is follows: “ /Users/wzl/workspace/solidity_workspace/foundry-f23/foundry-markdao/lib/chainlink-brownie-contracts/contracts/src/src/v0.8/interfaces/AggregatorV3Interface.sol": No such file or directory (os error 2); check configured remappings ”

panditdhamdhere commented 3 months ago

can you please show some error screenshot foundry.toml screenshot and import screen shot

panditdhamdhere commented 3 months ago

If you successfully installed make sure you're importing correctly Like this import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";

Also in your foundry.toml check your remappings:

remappings = [
    '@chainlink/contracts/=lib/chainlink-brownie-contracts/contracts/',
    '@openzeppelin/contracts=lib/openzeppelin-contracts/contracts',
]

I hope it's helpful let me know if you still facing problem

EngrPips commented 3 months ago

Hello @wzl521, Did you resolve this issue already? I would like to inform you that the Discussion tab is more appropriate for stuff like this.

cromewar commented 3 months ago

@wzl521, please let us know if this was solved.

cromewar commented 3 months ago

We are closing this due to a lack of follow-up.