hardhat-vscode: Linting doesn't work for @openzeppelin/contracts

Hi,

I worked with Solidity extension by Juan Blanco and worked perfectly well, but the import is not working since I moved to this extension. Otherwise, I should add it like this: import './node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';

Screen Shot 2022-11-25 at 8 33 31 AM

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

@kanej @antico5

Create an empty foundry.toml file on your project root

It works fine. Thanks!

Hey @kanej, I have the same error with importing. My project structure is like this. https://github.com/InsureDAO/pool-contracts

I have test contracts in test/foundry/*, and use remappings.txt to map a library’s path. But that does not work. What is the proper solution for the foundry test contract?