great tutorial only thing I'll add is in the beginning you want to run these lines mkdir hardhat-tutorial cd hardhat-tutorial npm init --yes npm install --save-dev hardhat that way you can start where based god julian starts
Fantastic video! Please note that "fails if sender does not have enough tokens" test passes no matter what the revertWith() string parameter is. It's not really testing it fully.
Thanks again - nice tutorial - I am not a beginner but I'm still learning. Truffle is definitely easier to get going but I think hardhat looks promising. I prefer ethers over web3 but then again - I imagine a seasoned pro like yourself will be better at evaluating these two - but overall - it seems hardhat and ethers is a more modern - next level framework
I love the test helpers built into chai and the debug logging built into the solidity files. I'm not sure if we can do a native solidity test with it, though. I may wait until it gets more adopted before i switch... Thanks for the video!
This is one of the best sources ive found for how to write java tests. However some of the tests for the contract im testing are quite a bit more complex then the tests provided. Could you make another video with more complex tests? All the videos I've seen on testing focus on token contracts. Can you make a video that writes test for contracts such as arbitrage, staking, lending etc. Love your work keep it up!
Incredible content!!!! can you do a video using hardhat and connecting Front-End to Smart Contracts to deploy on OpenSea Testnet. It would be amazing!!! thank you very much for the content!
Nice video!!! I believe that the truffle library offer better cli deploy tool because not need create some deploy script, but not offer local test node, this functionality offers ganache-cli or ganache , the integration between them is easy. In fact I didn't know hardhat library but after view this video I have very interesting to probe this. Is more flexible, offer test node, transparent integrarion with ethers.js library , nice tools and a lot of plugins. Is true that the learn curve is more big that truffle, but using.the documentation is matter of time to learn it.
Getting below error after running the "npx hardhat test" Should assign the total supply of tokens to the owner: Error: invalid BigNumber value (argument="value", value=undefined, code=INVALID_ARGUMENT, version=bignumber/5.6.0)
@1:34 he runs the 'npx hardhat' command and gets the option to create a project. @ 1:59 he runs 'npx hardhat' , again, and gets a list of the tasks available. My problem is that I want to get the option to create a project when I run the command, however I only get the list of tasks available option.
Me: npm install -D hardhat GitBash: up to date, audited 10 packages in 939ms found 0 vulnerabilities Me: npx hardhat GitBash: npm ERR! could not determine executable to run HELP!!! Please.
Hello Why does it warn me when I write the pragma solidity ^0.8.0 ? the warn is " Source file requires different ccompiler version ( current compiler is 0.7.3+commit.9bfce1f6 ) ".
I saw your video and I really enjoyed it. But I have a problem on my NFT concerning the image visualization on the ethereun network through Opensea. The name NFT: Cripto The Iron Family
I am getting error in test ` AssertionError: expected { Object (_hex, _isBigNumber) } to equal { Object (_hex, _isBigNumber) }`. Followed the same as you mentioned in the video
Hi, I supposed CLI prompt for the priv. key in the way of `prompt.get({"hidden: true"})...` would be better but had no success, any gist on how to achieve such deployment flow for the main-net?
Is there a way to get error linting using hardhat and vscode? I like how remix tells me I did something wrong right away. I'm new though so for me I really need it.
When testing, is there a way to deploy from an account other than the first one in the getSigners array? Like deploying from the second account in the getSigners array for instance
Hello, Julien Is there any possibility to add a network with ‘wss’ (not ‘http’) URL for hardhat test? Now i have the message "TypeError: Only HTTP(S) protocols are supported" while testing
3 ปีที่แล้ว +1
Great content, but I still prefer Truffle 5! Thank you!
Yes. There is a NodeJS library for that. I did it with Truffle (you can see my video on deploying the token of ETB). I am sure you can do it with hardhat as well.
Hey @eattheblocks, im very interested in doing my own sort of yield farming token but am a complete noob at code. Im able to read/deploy no problem - but for web3/api and a ctually linking them i dont know where to begin. Is there any group or way to message you directly? I have telegram? I'm willing to pay for you to teach me, even if its simple! Ypuve that fucking smart, just watching your videos you explain things so well my man. Reply to this comment with your response. Im being as genuine as possible with all of this. Be safe brother.
Thanks for the video @eattheblock I would like you ask at 23:32 What do you mean by first we should get the contract factory using const Token = await ether.getContractFactory('Token')
I created my first live contract with HardHat after switching from Truffle. I have zero regrets switching. Hardhat's documentation is great too.
Thanks for sharing!
Awesome tutorial with good illustrations. Every point is well explained and I must confess that you are a life saver. Kudos!
This is awesome I just converted from truffle to hardhat but still had some questions. This will be super helpful :)
Great to hear!
great tutorial only thing I'll add is in the beginning you want to run these lines
mkdir hardhat-tutorial
cd hardhat-tutorial
npm init --yes
npm install --save-dev hardhat
that way you can start where based god julian starts
I always learn something new when I visit your channel.
Glad to hear that
Perfect end to end tutorial video. I appreciate this more than I can say. Thank you!
Great to hear!
Fantastic video!
Please note that "fails if sender does not have enough tokens" test passes no matter what the revertWith() string parameter is. It's not really testing it fully.
Thanks again - nice tutorial - I am not a beginner but I'm still learning. Truffle is definitely easier to get going but I think hardhat looks promising. I prefer ethers over web3 but then again - I imagine a seasoned pro like yourself will be better at evaluating these two - but overall - it seems hardhat and ethers is a more modern - next level framework
Man you're good, this is perfect
Thanks a lot!
I love the test helpers built into chai and the debug logging built into the solidity files. I'm not sure if we can do a native solidity test with it, though. I may wait until it gets more adopted before i switch... Thanks for the video!
This is one of the most useful videos for me. So glad to be done with truffle lol. Thanks!
Glad I could help!
julien the best of the best
thanks, glad it's helpful!
You are the best dude! simply the best
Wow, thanks!
@@EatTheBlocks
This is one of the best sources ive found for how to write java tests. However some of the tests for the contract im testing are quite a bit more complex then the tests provided. Could you make another video with more complex tests? All the videos I've seen on testing focus on token contracts. Can you make a video that writes test for contracts such as arbitrage, staking, lending etc. Love your work keep it up!
Incredible content!!!! can you do a video using hardhat and connecting Front-End to Smart Contracts to deploy on OpenSea Testnet. It would be amazing!!! thank you very much for the content!
Nice video!!!
I believe that the truffle library offer better cli deploy tool because not need create some deploy script, but not offer local test node, this functionality offers ganache-cli or ganache , the integration between them is easy.
In fact I didn't know hardhat library but after view this video I have very interesting to probe this. Is more flexible, offer test node, transparent integrarion with ethers.js library , nice tools and a lot of plugins. Is true that the learn curve is more big that truffle, but using.the documentation is matter of time to learn it.
Thank you for this type of content!!
he's the best!
Great walkthrough!
Can You make a full playlist for zero to hero in blockchain development with projects included ?
Getting below error after running the "npx hardhat test"
Should assign the total supply of tokens to the owner:
Error: invalid BigNumber value (argument="value", value=undefined, code=INVALID_ARGUMENT, version=bignumber/5.6.0)
@1:34 he runs the 'npx hardhat' command and gets the option to create a project. @ 1:59 he runs 'npx hardhat' , again, and gets a list of the tasks available. My problem is that I want to get the option to create a project when I run the command, however I only get the list of tasks available option.
I've never gotten that problem, have you installed hardhat?
Getting this problem too. Did you ever figure it out? Also having problems installing the plugins saying they are not found in the registry.
@@darylferreras6241 same problem with me . any solution from you?
awesome
So then the deployer address has all those tokens… how do people/teams manage that private key to keep it secure? Not like you can rotate that…
Hello sir, I can't access to 2nd video on your website.(Free training)
Me: npm install -D hardhat
GitBash: up to date, audited 10 packages in 939ms
found 0 vulnerabilities
Me: npx hardhat
GitBash: npm ERR! could not determine executable to run
HELP!!! Please.
CAN YOU HELP ME to SOLVE THE ISSUE: Error HH600: Compilation failed, when i deploy the Transaction.sol Thanks please
Hello
Why does it warn me when I write the pragma solidity ^0.8.0 ?
the warn is " Source file requires different ccompiler version ( current compiler is 0.7.3+commit.9bfce1f6 ) ".
I saw your video and I really enjoyed it. But I have a problem on my NFT concerning the image visualization on the ethereun network through Opensea.
The name NFT: Cripto The Iron Family
This was really helpful information. Thanks!
Glad it was helpful!
please also share the matching code repo , I have to search the exact file which you are using in entire repo
do I need to set up and initialize testing environment every time when I create a new project/folder?
Great tutorial!! Thank you!
Glad it was helpful!
Can you do more hardhat tutorials with interesting smart contracts, testing and so forth
I will think about it
I am getting error in test ` AssertionError: expected { Object (_hex, _isBigNumber) } to equal { Object (_hex, _isBigNumber) }`. Followed the same as you mentioned in the video
integrating with frontend just went little bit over the mind
Hi, I supposed CLI prompt for the priv. key in the way of `prompt.get({"hidden: true"})...` would be better but had no success, any gist on how to achieve such deployment flow for the main-net?
what software are you using? looks amazing,
Why is your private key public to us?
I hate truffle so much, thanks for this video!
Is there a way to get error linting using hardhat and vscode? I like how remix tells me I did something wrong right away. I'm new though so for me I really need it.
Great video, thanks so much 👍
Glad you liked it!
When I done "npx hardhat test" I am getting "0 passing"
Please can u tell me the solution for this
Thank you
Is this ERC 20 token ?
When testing, is there a way to deploy from an account other than the first one in the getSigners array? Like deploying from the second account in the getSigners array for instance
Hello, Julien
Is there any possibility to add a network with ‘wss’ (not ‘http’) URL for hardhat test? Now i have the message "TypeError: Only HTTP(S) protocols are supported" while testing
Great content, but I still prefer Truffle 5! Thank you!
Why?
@@Viralplace It's easier
@ market demands hardhat
I've changed and using Hardhat today... The learning curve is steeper, but it's more flexible.
By the way, I'm launching one more DeFi product soon...
Лучший!!!
Is it possible to use hardhat with web3 and mocha ? Would some dependencies change other than the ethers and chai dependencies ?
Hi do you have the github code?
token does not have a connect() member function. Or is that added by hardhat or something?
make sure you are using the "token" object and not "Token" to call connect.
Is there a way to deploy contracts using a ledger wallet?
Yes. There is a NodeJS library for that. I did it with Truffle (you can see my video on deploying the token of ETB). I am sure you can do it with hardhat as well.
@@EatTheBlocks Thanks, your videos are really helpful!
Don't use the latest verion of node
what is the advantage of using hardhat over truffle?
how do we verify a contract using this method?
I assume its using a plugin like with truffle to connect to etherscan
yep :) thank you for the tutorial!
We need to learn truffle so we can use an alternative? That sounds inefficient
If you don't know Truffle start with that. And if you don't like Truffle, checkout Hardhat.
@@EatTheBlocks Thanks
Thus hope it has support of typescript 😟
it does -- hardhat.org/guides/typescript.html
🌍🌎🌏🌐
This video deserves an update??
still up to date
Why don't you use VS Code
because I prefer vim.
@@EatTheBlocks mmm i see ;) Thanks!
POST YOUR GITHUB TY
Hey @eattheblocks, im very interested in doing my own sort of yield farming token but am a complete noob at code. Im able to read/deploy no problem - but for web3/api and a ctually linking them i dont know where to begin.
Is there any group or way to message you directly? I have telegram?
I'm willing to pay for you to teach me, even if its simple! Ypuve that fucking smart, just watching your videos you explain things so well my man. Reply to this comment with your response. Im being as genuine as possible with all of this.
Be safe brother.
mejor directo en la EVM :v
Bro tell me about how can I do an online interview for remote block chain job because I am from India
Tell me suggestions bro please please 🙏
Hardhat a l'air d'être moins instable que Truffle
Beaucoup de dev ont switche a Hardhat oui
@@EatTheBlocks je suis intéressé par le cours sur la defi, on peut le suivre avec hardhat ?
@@TheShoTo On utilise Truffle dans le cours, mais si tu veux tu peux essayer avec Hardhat, ca devrait marcher aussi.
Sir i have sent you mail regarding purchase of defi course...
"TypeError: token.balanceOf is not a function"
the error pop up when I tried ran the code from the video ......need some help here .......
Validate the letter's case of balanceOf in .sol file. both should be same.
Wow!!! This was awesome!!! Thank you for sharing! Already subscribe me. 👏
Thanks for the video @eattheblock
I would like you ask at 23:32
What do you mean by first we should get the contract factory using const Token = await ether.getContractFactory('Token')