ParserError: Expected ';' but got identifier Error HH600: Compilation failed - getting this error, one step before deploying the contract

ParserError: Expected ';' but got identifier Error HH600: Compilation failed - getting this error, one step before deploying the contract

Manage alerts

Loading saved threads...

Feynman · External communityPost link
External question — Ethereum Stack Exchange Author: Feynman Original post: https://ethereum.stackexchange.com/questions/115151 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. I keep getting this error; I was told before to use "const License one in my code, but I don't know which contract I will put it into. Here's the picture: Could someone advise me on what I should do to fix this issue. Would really appreciate it, will build a youtube channel soon to fix common problems. ParserError: Expected ';' but got identifier --> contracts/Nikola.sol:5:24: | 5 | const License = await ethers.getContractFactory('License'); | ^^^^^^ Error HH600: Compilation failed
Quote
Report
0xninja · External communityPost link
External answer — Ethereum Stack Exchange Author: 0xninja Original post: https://ethereum.stackexchange.com/a/115156 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. there is something wrong with your deployment script and/or your hardhat config. as this error isn't reproducible. suggestion: if you start a new project with npx hardhat and pick create a basic project , and copy your solidity contract into it (making sure to change Greeter to Nikola in the hh.config and deployment scripts, you should be good to go.
Quote
Report

Post Reply

Quoted from Forex.com.bd-Editorial External answer — Ethereum Stack Exchange Author: 0xninja Source score (net votes, not local likes): 0 Original post: https://ethereum.stackexchange.com/a/115156 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. there is something wrong with your deployment script and/or your hardhat config. as this error isn't reproducible. suggestion: if you start a new project with npx hardhat and pick create a basic project , and copy your solidity contract into it (making sure to change Greeter to Nikola in the hh.config and deployment scripts, you should be good to go.

Cancel quote

Checking account access…