In building smart contracts a very common thing you will need to do is add dependencies to take advantage of code other people have already written. One of the most common dependencies/smart contract libraries to use is OpenZeppelin's contracts. They...
Markdown supported · ⌘↵ to post
the @ sign is for "scoped packages" in npm - unfortunately, hashnode doesn't let me add a link in this comment :( dm me on twitter @boutellier_yves for a link ;)
Guido Giuntoli
Blockchain Developer
In my case works but with a slight modification of the path:
import "openzeppelin-contracts/token/ERC20/ERC20.sol";The path you mention:
import "openzeppelin-contracts/contracts/token/ERC721/ERC721.sol";throws me this error:
Error: Compiler run failed error[6275]: ParserError: Source "lib/openzeppelin-contracts/contracts/contracts/token/ERC20/ERC20.sol" not found: File not found.