DEV Community

Discussion on: Ethereum Dapp Crash Course: Make an ERC20 token faucet + Frontend

Collapse
 
tssandor profile image
TSS • Edited

Great stuff!

There is one important step missing before deploying the contract to the local blockchain: compiling it! You need an npx hardhat compile. It took me AGES to figure out why it refused to compile the file. Turned out that it couldn't recognize .Sol, only .sol - maybe useful for someone struggling with the same :)

Collapse
 
richardmelko profile image
Richard Melkonian

Thank you so much for this, I must have missed this command, I'm going to edit the post now. Well done for figuring it out. And glad you got something from this.

Collapse
 
senorgeno profile image
Gene

Thanks for this!

You might want to also change the name here too
'.Sol' - "In your project in the /contracts folder delete any contracts there and create a new contract called FCTToken.Sol with the following code, the code we just tested."

Thread Thread
 
richardmelko profile image
Richard Melkonian

will update, thanks