Closed yasiriqbal1990 closed 2 years ago
looks like there is an error with the code above that line. Did you forget to add a "; " at the end of import "./PriceConverter.sol";?
Here is what my code above that is looks like. there is no error. Its working perfectly on remix but on visual studio and hardhat.
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; import "./PriceConverter.sol";
Need more information.
Did you run yarn hardhat compile
?
And could you make this a question on the main repo? https://github.com/smartcontractkit/full-blockchain-solidity-course-js
@PatrickAlphaC Yes I am using npx, When I run npx hardhat compile then I get the error Expected ';' but got '('.
ParserError: Expected ';' but got '(' --> contracts/FundMe.sol:7:15: | 7 | error NotOwner(); | ^
Error HH600: Compilation failed