I'm encountering an issue while building my Foundry project #3204
Replies: 2 comments 16 replies
-
HI! First, make sure that you have installed Foundry. If you haven't installed it yet, please refer to the previous instructions for installation. In your Foundry project directory, run the following command to install the Chainlink contracts: forge install smartcontractkit/chainlink-brownie-contracts Once the installation is complete, you need to add the following remappings in your foundry.toml file or remappings.txt file: @chainlink/contracts/=lib/chainlink-brownie-contracts/contracts/ Now, you can import Chainlink's Price Feeds interface in your Solidity contract. For example: import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; In your contract, you can use the Price Feeds' address to initialize the interface and fetch price data. |
Beta Was this translation helpful? Give feedback.
-
if i forge install it show this
|
Beta Was this translation helpful? Give feedback.
-
The compiler cannot resolve the import
this the issue i am getting
Beta Was this translation helpful? Give feedback.
All reactions