Cyfrin / foundry-smart-contract-lottery-cu

48 stars 42 forks source link

Import path of @solmate contracts needs to be updated #37

Closed nirban256 closed 1 year ago

nirban256 commented 1 year ago

In the LinkToken.sol contract inside the mocks folder present in test folder, the LinkToken contract is importing the ERC20 contract in the following way: import {ERC20} from "@solmate/tokens/ERC20.sol"; But is showing that the contract is not found in vs code.

However if I change it to like this: import {ERC20} from "@solmate/src/tokens/ERC20.sol"; It seems to be working fine.

Am I alone facing this problem or it is the same for everyone else?

nirban256 commented 1 year ago

It was a error on my end. It is solved now.