Learn Truffle By Creating A dApp | Truffle Tutorial | Code Eater - Blockchain | English
HTML-код
- Опубликовано: 21 авг 2024
- ⭐️Course Contents ⭐️
⌨️ (00:00:00:00) Course Intro
⌨️ (00:02:18:02) What is Truffle?
⌨️ (00:03:42:16) Why use Truffle?
⌨️ (00:06:23:17) Truffle Compilation
⌨️ (00:15:59:14) Truffle Migration Part-a
⌨️ (00:21:02:16) What is Ganache?
⌨️ (00:24:31:08) Truffle Migration Part-b
⌨️ (00:28:46:08) Deployment on Blockchain
⌨️ (00:32:55:12) Alchemy
⌨️ (00:34:53:11) Deploying Goerli Testnet
⌨️ (00:46:42:04) Ganache VS Testnet
⌨️ (00:49:14:09) Decentralize Application
Truffle Github - github.com/ksh...
Truffle Dapp Github - github.com/ksh...
📧 Business Email - ksrivas199@gmail.com
💬Instagram - / codeeater21
🗣Discord - / discord
Linkedin - / kshitijweb3
Twitter - / kshitijweb3
✨ Important Books ✨
1) Bitcoin - amzn.to/3r4nJ5S
2) Ethereum - amzn.to/3r4nJ5S
3) Hyperledger 1 - amzn.to/3rVjmcB
4) Hyperledger 2 - amzn.to/3g2r52Z
5) Mining - amzn.to/3IMtJ9z
6) Lightning Network - amzn.to/3u3bnwG
Code Eater's Full setup 👇
🔴 Livestreaming Webcam 👉 amzn.to/3mHXnE3
💻 Editing Laptop 👉 amzn.to/3Ht5tbY
🎤 Microphone 👉 amzn.to/3mL5kbV
🖊️Pen Tab 👉 amzn.to/33ZEmGL
Thank you for watching - I really appreciated it :)
Cheers,
Code Eater
#codeeater #cryptocurrency
1) If you are facing an error - "Migrations" hit an invalid opcode while deploying visit below
stackoverflow.com/questions/76377136/migrations-hit-an-invalid-opcode-while-deploying
2) If you are seeing the data in the form of 1n,2n then it is a Big Number object just convert it to String. You can use chatGPT as well to know more about it.
thanks dude i was litrally struggling on this since 2days
bhaiya mere mein ek error arha hai : jab bhi mein readData mein console.log kar rha hoon tab woh data leke console mein dikha rha hai lekin jab wohi data mein web page mein project kar rha hoon paragraph ke form mein tabh woh bas jab page refresh horha hain tabh 0.1 secs keliye dikha rha hain aur bas khatam phir dikha hin nhi rha
👍
This is the best tutorial on the internet. I’m not exaggerating, I struggled to deploy my contract for two days straight following other tutorials. Thanks
How did you solved this problem ?? Can you please help me
A short, crisp and wonderful introduction to Blockchain development locally. At this point, everything is making sense w.r.t development 🎉
underrated. as hell need much more appreciation nice channels and videos
tried many videos on web3 coding, however this was the only one that gave me a clear view of the tools I could use and how i could use them effectively! :) finally got unstuck, thank you
Thank You so Much! I am new to Web 3.0 Development and this video really helped me setup a local environment for smart contracts with Truffle! Well Explained & Easy Tutorial!
00:00:00 Course Intro
02:18:02 What is Truffle?
03:42:16 Why use Truffle?
06:23:17 Truffle Compilation
15:59:14 Truffle Migration Part-a
21:02:16 What is Ganache?
24:31:08 Truffle Migration Part-b
28:46:08 Deployment on Blockchain
32:55:12 Alchemy
34:53:11 Deploying Goerli Testnet
46:42:04 Ganache VS Testnet
49:14:09 Decentralize Application
Thank you so much bro. This helped to understand fundamentals really well! You're really underrated.
Clear, concise yet detailed... This is the tutorial I was looking for! Thank you so much!
Bro, your lessons realy help me in the study of blockchain technologies. Thank's a lot for you work.
Greetings from Estonia.)
That's great 😃
with the latest solidity version 0.8.20 there an issue , so deploy with 0.8.18 .. it works
Thank you so much i ran into this issue ❤
this is such clear explanation! Loved your enthusiasm as well. Thankyou
Thanks so much, well explained, to the points and easy to understand and follow. You made me understanding Dapp.
man, really really great & clear
explanations
I love you man.
from Brazil
Such nice and insightful explanations.. he really knows blockchain
Great tutorial!
Clear explanations. Thank you very much
I get this error. I have searched the solution from many pages but it is not solved.
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
Error: *** Deployment Failed ***
"SimpleStorage" could not deploy due to insufficient funds
Reduce solidity version in truffle configuration to below 0.8.18
Thank you. Solved.@@codeeaterweb3971
thank you so much you are the best in blockchain ;really the best one
I am not getting any value in the screen as well as on console.log (data shows 0n), Can you please help me on this?
When I debug and involing getter function, I can see below error
typeerror: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at function.invokegetter
super cool tutorial.. keep on going bro
You made it look so easy.. kuddos to you
bhaiya tussi great ho....bahut help kardi aapne
Great Tutorial Sir
Learnt a lot
Thank You♥
y bro u have stoped making videos this video helped a lot man
kudos to your lucid explanation of concepts via code implementation!
I always get this error:
"SimpleStorage" hit an invalid opcode while deploying. Try:
* Verifying that your constructor params satisfy all assert conditions.
* Verifying your constructor code doesn't access an array out of bounds.
* Adding reason strings to your assert statements.
how do I fix this?
Send me your contract on instagram @codeeater21
@@codeeaterweb3971 hey did you resloved the issue
Please help me I am stuck with the same issue
Did you get it resolved?
@@shlokjagtap2136 the the version of your compiler in truffle-config.js
wonderful explanation video
I have an internal placement requirement to do an "implementation of distributed crowd sourcing using Blockchain mechanism" Can anyone help please 🙏
Waiting for ethers js + hardhat 🙂
so useful video :) thank you
thanks my brother
Great course brother
i keep running into an issue when i try to run the npm install for the hd wallet provider. Ive tried running it on powershell, command prompt, and administrator command prompt. My error says how the npm couldnt find a file. anyone else run into this and solve it?
Great tut❤
Superb👌👌
This version of µWS is not compatible with your Node.js build:
Error: node-loader:
Error: The specified module could not be found.
""I am facing error, when I am running this command, truffle migrate --network goerli --reset
hey did you fixed the error please help me if you fixed it ?
You now have a +1 subscriber. Please have continuation of this course
Every week a new course 🙂
@@codeeaterweb3971 What if we add metamask as the wallet on the picture? How? Can you make a video for this? ToT
@@franclloyddagdag8900 metamask at the wallet?
@@codeeaterweb3971 Yes, instead of using the send({from("0x. . . . . . .. ")}) we could just put it in the metamask wallet, then use that. How should we do it, maybe you could do some tutorial for it.
Alchmey not offering goreli testnet, only sepolia testnet? Just stuck there how to go through it please
Yes go through it
pls how can we change it form goleri to sepoial or etherum because of alchemy it does not show sepolia
Is truffle preffered over hardhat or vice-versa? and which of the framework in more in demand?
When I run the command truffle migrate --network goerli --reset
I get this error
Error: Unknown arguments format passed to new HDWalletProvider. Please ensure you passed
provider information along with either a mnemonic or private keys.
Your arguments are not in right format.
Error: *** Deployment Failed ***
"simpleStorage" hit an invalid opcode while deploying. Try:
* Verifying that your constructor params satisfy all assert conditions.
* Verifying your constructor code doesn't access an array out of bounds.
* Adding reason strings to your assert statements.
what should i do?
Just use lower version of solidity
Solved thanks
Specific under v0.8.20
Brother I am getting this error while migrate
"DataStorage" hit an invalid opcode while deploying. Try:
* Verifying that your constructor params satisfy all assert conditions.
* Verifying your constructor code doesn't access an array out of bounds.
* Adding reason strings to your assert statements.
Use pragma solidity 0.8.19 save it and try
Same with me
00:49:14:09
i have an error
throw new Error("Could not find artifacts for " + import_path + " from any sources");
^
Error: Could not find artifacts for Simple from any sources
please help me with this
Check for the location of your artifacts folder.
Thank You bhaiya
can you make a video on dapp making for P2P network?
Great job, very useful. Thank you very much! Although I have a question:
In case of deployment on a testnet, how function writedata should look like? I think account must be dynamically passed, right? I mean: methods.....send({from:....}); Also how can I update the value without refreshing the page? And one more question, how can I read an error message resulted from calling a function? (in case I have a function with a require statement that is triggered)
1) We can dynamically pass accounts by fetching accounts in a variable and then passing it as a parameter.
You can read the error message on the browser console or use a try catch block
I am getting this error while deploying. Please help. Stuck on here fro long.
Error: Unknown arguments format passed to new HDWalletProvider. Please ensure you passed provider information along with either a mnemonic or private keys.
Check the format of your private key and mnemonic
@@codeeaterweb3971 checked. Still same error.
Send me screenshot at instagram
@@codeeaterweb3971 sent in DM
Great video, very helpful thank you very much for great tutorial. If I may say, would it be possible to have full window showing the tutorial without the small window in the corner showing you teaching us. I am very very very sorry for this comment. I don't want to be rude but I am kinda distracted with small window i the corner. Other than that this tutorial is very very helpful. Thank you very much for making this video. But if no one else bothered, then please don't worry about my comment.
Thanks for the feedback;)
Hello Sir, This is really great tutorial. I have reached upto the last line of the code and my react JS is running fine. Both the getter() and setter() are working. Only a small problem is - the data I fetch is not being displayed on web page. I have tried to setdata for a constant value and it will be displayed after making setData(). Even the value returned from contract is displayed in Console But it is not going to be displayed on web page. What should I do?
Please the data convert it to a string
Done. Really Happy. Thank You So much@@codeeaterweb3971
Awesome sir 🤎....
sir!... could you please create videos for Decentralized Network Storage part (Pinata & IPFS ) .... 😊
I already have . See Decentralized gdrive project
@@codeeaterweb3971 Thank you Sir ... I will check it 😍
In Console, contract data it is showing data like 0n 10n 34n but it is not showing inside div, so please provide some Solution....
This is a big number notation. Just convert it to String.
@@codeeaterweb3971 How ??
Thank you for explaining every required thing in detail, but i am facing a problem regarding the value. Whenever i open localhost i am not able to see the initial value of (a) as zero and even after setting the value to 10, the space after smart contract remains blank. The problem which i am facing is at 1:22:13 in the video. Please help me to solve this problem.
Check your react part
On the localhost?? If yes, there are no message regarding error. And if you are talking about the code App.js then can you please tell me in more detail about which part of code i have to edit.
Thank you.
@@codeeaterweb3971 ??
you need to convert data to string: Contract Data : {data.toString()}
Migration hit an invalid opcode while deploying
See the pinned comment
You should make us a new video in 2024, I am new and I am trying to watch videos of blockchain and they are all old and I get a lot of errors. They are using old versions also.
Sure
thanks
Great tutorial! However, I had one question, when we migrate the contract, isn't the ETH for the first account supposed to be reduced? But it stays the same, 100 ETH, in the ganache. I would really appreciate if anyone could explain this.
Actually ganache does not show minute changes in eth. So if you will console the balance of account on terminal then it will show that balance is deducted.
@@codeeaterweb3971 I did tried console the balance on terminal, and it shows! But I am still not sure what do you mean by minute changes, does it mean I can actually see the changes after a long time? Also, thank you so much for the reply, I appreciate it!
@@studynowlah if there is a small deduction from the account like 0.01 eth kind then it will not show you. But if you do a transaction greater than 1 eth then it will be visible.It's about precision of ganache
@@codeeaterweb3971 I see, thank you so much for the explanation!
Delicious
how to input form data like user , age, number in a class instead of only one variable?
In the next dapp... I will show that
@@codeeaterweb3971 great. please add image or document to it with ipfs also
@@decadewgame9802 I have already. Please see decentralized gdrive video.
@@codeeaterweb3971 I have few questions. should I avoid jsx for making components ? is vite good for making blockchain projects?
Plz do how we can add data into blockchain using ganache. Then we display it into table plzzzzzz
See chai dapp video
@@codeeaterweb3971 thank you i need it
Hello.please make video about testing smart contract
Sure
Getting error while using sepolia test network
What is the error?
@@codeeaterweb3971 sir when I deploy my smart contact using truffle then the provided RPC is not working then I tried to deploy smart contract using remix with metamask injector then it is perfectly deployed..
can u help me pleaz how to integrate ipfs on blockhchain to store and retrieve data from ipfs on blockchain ;i have project for that ; thank u so much
Check my gdrive project video
is it good way to provide address on react_file? like sender address
Just don't share private key
"SimpleStorage" hit an invalid opcode while deploying.
When you are getting this error?
@@codeeaterweb3971 while entering truffle migrate --reset
@@vishnusureshperumbavoor try to deploy using remix and see whether you are getting the same issue
@@codeeaterweb3971 had the same issue (even deployed on remix)
@@ybundhunify please send me the contract on instagram - @codeeater21
wowwww...... thanks a lot...... 😍😍
thank u i have a project for my memory project i am lost thank you so much -🥲
Not able to understand