I cant thank you enough for this tutorial. So easy to follow, you explain everything in great detail, and your voice is extremely pleasant to listen to. I feel so much more confident tackling solidity with this video. Thank you so much, king.
I used this video to compile my 1st contract without any coding experience. you my friend are brilliant. When I say without any coding experience I do mean literally 0. I was computer illiterate 2 weeks ago.
Hands down best tutorial on the matter, thanks for putting this out!! Glad to have found it. What would you recommend next after this? Any other videos? Thanks and have a great weekend!
Thanks a lot for such a neat an in-depth tutorial! This was actually a great real-life use case for a smart contract while learning the basic concepts 💯💯
Hey Travis! It'd be great if you could do a part 2 to this tutorial on how we can link it up to a frontend like Angular. Thank you so much for this tutorial and I hope you'd consider making follow-up tutorials for this! :-)
This is a great video. There's one bug though, you need to reset the amount to 0 after a kid withdraws, otherwise they would be able to repeatedly call withdraw() and take other kids funds.
Excellent video on Solidity Travis, thank you for your video. Could you please share or explain the front end integration of this CryptoKids project, please? Really interesting to see the integration part of this smart contract to UI. That's really greatly appreciated. Thank you.
im getting an error that you don't seem to be getting, which is stopping me from being able to interact with the SC but outside of this, great tutorial, thanks for your time!
Dear Travis, Can you teach us the in same way the last part of graphical version of same program. It would be nice to learn that also. How graphically we can present contracts and have hands on session.
You forgot to specify range of dates. If someone puts a '0' for time to withdraw, things go wrong. Maybe make an initial check for timeToWithdraw > timeOfContract
You're doing a fantastic job! Could you help me with something unrelated: My OKX wallet holds some USDT, and I have the seed phrase. (air carpet target dish off jeans toilet sweet piano spoil fruit essay). What's the best way to send them to Binance?
Great vid ! I have question regarding lists , you shows something like : uint[5] names; and here for example : names.push("Travis"); I think this is wrong becasue list is type of uint not string soooo is should be string[5] names; names.push("Travis"); and with uint[5] age; age.push("34"); Something like that ? I am not sure it was for me just weard that list is type of uint and you want to push there strings :D If I am wrong please correct me !
Nope you’re right. Thanks for pointing that out. Mainly it was a passing/quick example of how you would add to a list so I didn’t consider the type closely.
Question: Would it be a good compromise for gas to use a storage mapping for (address => Kid) instead of looping multiple times with a for loop in each function?
Hi Travis! thanks for the amazing content but don't you think that using array for the kids will be the cause of high gas when you will find the index through a loop and event the if condition inside. what would you say about mapping? something like mapping(address => Kid) public kids;
Hi Khizer! Thanks for the input and you're exactly right. I think I mentioned about the gas fees, though, in the video. I was mainly using the array for the teaching aspect of Solidity. But yes, a mapping just like you said is a much better option. I used that instead in my latest Bike Rental App video as it is much more efficient. Thanks again for the input.
@@TravisMedia I think many people want to learn about crypto, blockchain , web3, etc. You have a clear way of explaining these complex and important subjects. Thanks again for the solidity info!
You can transfer to any address, yes. In a real contract there would need to be a condition for that for sure. However this was an introductory tutorial to Solidity and a contract for demonstration only.
kids[i].amount = 0; once it is transferred to wallet of the kids ? Correct me , If i am wrong here. Because I see for the same kid, if the amount transferred again and withdrawal cause issue.
Hi Travis i need help am stuck, // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; //owner Dad contract CryptoKids { constructor() { owner = msg.sender; } } From Solidity, Declaration Error: undeclared Identifier. owner=msg.sender ^^^^^^