Hi Tim! Really appreciate what you are doing for us! I think the problem is in the require statement: you are checking the balances of the account which is meant to receive the withdrawal, instead of the actual account that is withdrawing.
is it that you didn't charge the account holder for the gas used to withdraw? (by 'charge' I mean modify the amount held for them to be what they withdrew plus gas)
Hi Tim. In the withdraw function, you are deducing the bank balance of msg.sender but sending the money to addr. Instead, the money should be sent to msg.sender .
I wasted thousands of dollars in college and learned nothing compared to what i learned here in this channel for free. You guys are amazing . You people deserve a noble prize for what you are doing here.
Great video Tim, however I noticed that in function parameters, you don't add an _ before the name. It is standard naming convention in solidity, just thought I should add this
Thanks for this very good job Any time you modify your code and deploy the contract on the network, does it create a new contract or it just replaces the old one?
When a smart contract interacts with another smart contract does the gas fees of the transaction made from the regular account increase or not necessarily?
Hey guys I am stuck at the part trying to call a function. In "deployed contracts", you see the setX function, I ran the code after adding the function (exactly how you have it put, and no function is shown in my deployed contracts. Just the x button, i don't understand what am doing wrong here.
The withdraw method is error prone to reentrancy attack and is how the infamous DAO hack occurred. Please fellas update your state variables before making any external calls/transactions.
Which attack was it? An OnlyOwner modifier can be used so the function can be triggered only by the owner of the contract. Can the method still be attacked even with that modifier?
There is a small mistake/bug in the withdraw function of the bank account example. Can you find it?!
Hlo, please replay me 🙏
Hi Tim! Really appreciate what you are doing for us! I think the problem is in the require statement: you are checking the balances of the account which is meant to receive the withdrawal, instead of the actual account that is withdrawing.
is it that you didn't charge the account holder for the gas used to withdraw? (by 'charge' I mean modify the amount held for them to be what they withdrew plus gas)
You subtract the balance after sending the ether, making this contract vulnerable to reentrancy attacks I think
Hi Tim. In the withdraw function, you are deducing the bank balance of msg.sender but sending the money to addr. Instead, the money should be sent to msg.sender .
Excited to be onboarding the next generation of developers to blockchain with you Tim!
Would be interesting to try out the platform :)
:-)
I wasted thousands of dollars in college and learned nothing compared to what i learned here in this channel for free. You guys are amazing . You people deserve a noble prize for what you are doing here.
Best teacher on this ever!
Great video Tim, however I noticed that in function parameters, you don't add an _ before the name. It is standard naming convention in solidity, just thought I should add this
thanks Tim, it looks less scary to learn about this with your videos.
Another gold. Thanks for making these
great video! very informative and well explained
Very good Tim.
This is getting touch pretty quickly, i had hard time understanding all the concepts in this video
Probably because you need to learn fundamentals of coding first. Took me 2 weeks to learn basics of python and I understood 95% of the content
Excellent tutorial
God bless you Tim!
Same from me ✌
Let's go Blockchain!!!!!!!!!
Thank you so much man, God bless you!
Can you do a series on many kinds of encryption/decryption strategies?
you're a beast dude thank you so much
Lets go ,gg to Tim!
Thanks for this very good job
Any time you modify your code and deploy the contract on the network, does it create a new contract or it just replaces the old one?
Creates a new one
when you deploy a new contract in 26:00 is it a new contract? or it is a modified old(from begining of video) one?
Sir I hv studied solidity from official documentation , I need use cases n practice questions
Keep it up ♥️
what a good guy, thanks buddy
Can you do a video on protect dat with flask
👏👏👏
Hey tim are you offering private / group / Bootcamp mentorship for backend dev? If so let me know please thanks
When a smart contract interacts with another smart contract does the gas fees of the transaction made from the regular account increase or not necessarily?
9:17 "We don't want to change the gas limit so we'll leave it here for now"
*Proceeds to decrease it*
Make a tutorial on circuit programming with python
Is it possible to use python to write smart contracts?
Hey guys I am stuck at the part trying to call a function. In "deployed contracts", you see the setX function, I ran the code after adding the function (exactly how you have it put, and no function is shown in my deployed contracts. Just the x button, i don't understand what am doing wrong here.
The withdraw method is error prone to reentrancy attack and is how the infamous DAO hack occurred. Please fellas update your state variables before making any external calls/transactions.
Which attack was it? An OnlyOwner modifier can be used so the function can be triggered only by the owner of the contract. Can the method still be attacked even with that modifier?
Is learning ML good decision
What should i do to learn
I mean give me some tips and a roadmap
20:40
Thanks timity tim timy
How to run solidity code in windows 10 notepad
Can we get the code of this video ?
26
First
Tim, you should make a Minecraft Hypixel Bedwars/Duels Tournament for 1mil subs
Best laptop under 1000dollars
Editing
CS stuff
Multimedia
Good cpu, with integrated graphics
If you can extent to 1200 bus m1 air
ML vs Android development
Which technology to learn
whatever feels more fun for you
dip toe in both
@@AliendaroN yes i can but i want these from real people like you
Tim, can I please be unbanned from the discord? I feel I was banned unfairly. If you cannot ban me directly, can you send me an appeal for the server?
come on man.. This is not for beginners
Shit is easy
What is this blockchain
Shoul i learn this over ML