I'm writing smart contract using Foundry. When I try to import contract from github like this:
import "@openzeppelin/contracts/token/ERC20/IERC20";
I will see error like this:
Source "@openzeppelin/contracts/token/ERC20/IERC20" not found: File import callback not supported
I think I have done the necessary things in which I have added the package like this:
forge install Openzeppelin/openzeppelin-contracts
and written remappings in foundry.toml file.
remappings = ["@openzeppelin/=lib/openzeppelin-contracts/contracts"]
But i still see the error. How can I fix the error?