0:00 - Defining a struct 0:23 - Use in state variables 1:04 - Initialize 5:01 - Get 5:59 - Update 6:50 - Delete
@sumeshk.s4244 Жыл бұрын
i haven't seen a smart contract explanation as good as yours anywhere in KZbin. your explanation on structs is on point and i am thankful to you . keep up the good work brother
@CNOD-lg6mv6 ай бұрын
man. You have no idea how this video helpful to me, I’ve been struggling about the struct for whole day and this video just explained all my questions. Thanks a lot about your efforts. Keep creating these content please!!!❤❤❤
@franckyking933 жыл бұрын
You're awesome, man. Love your step by step explanations.
@RiquezaIntegrativa2 жыл бұрын
Very comprehensive explanation! Congrats!
@suri75733 жыл бұрын
thanks for the video! love how you make it short and simple
lol, I didn't see I'd already commented below. Well, it's the 1000th time I'm watching. Very instructive!
@StrekRout3 жыл бұрын
WOW!! Keep up with the good work, you're a great teacher
@salem2323 жыл бұрын
Thank you boss !! 😎
@Ts2pc2 жыл бұрын
Such a nice course!
@electronicmail6497 Жыл бұрын
Hi! Beginner here. Thanks for this tutorial. I want to know how we can use this code: Car public car? Particularly how can we use the "car" based on that code?
@immanuelpochtar90162 жыл бұрын
Variable that defined in memory is alive as function running. So, what is the difference between 'memory' variable and local stack variables ?
@TheGaneshshow2 жыл бұрын
How to use mapping(address => Car[]) public carsByOwner; I'm unable to make use of it in contract. what should I insert as address, uint156 arguments? Please answer soon!, Thank you.
@ethisfreedom Жыл бұрын
bruh you obviously need to insert address type value for address type key🦧
@robertogarcia88422 жыл бұрын
You can expand the topic by explaining how to interact with a mapping within a struct. Thanks.
@D3athW1ng2 жыл бұрын
Is there any reason I need to create a memory variable _car to get the values/ element values for the cars stored in the array, can't I just call the array directly?
@smartcontractprogrammer2 жыл бұрын
You can. Depending on code, it might consume lower gas to load struct to memory first.
@validyor2 жыл бұрын
Finally, an answer to the question "wer lambo"
@ecrypto18492 жыл бұрын
When we push inputs to an array of struct "Transaction[] public transactions;" why do we include "Transaction" in "transactions.push(Transaction(*values*));" but when we access it with "require(!transactions[_txId].executed, "error") we do not include "Transaction" ?
@smartcontractprogrammer2 жыл бұрын
First code is creating a struct Transaction and storing it into an array Seconde code is accessing Transaction struct stored in the array
@Bruhne Жыл бұрын
Got it! Though I think it’s time for me to spend a few days to a week and go back and review everything I’ve learned, and forgot lol. Thus meaning more views for you.
@cortexyphan Жыл бұрын
Sorry for my answer but I am a novice. Could someone explain me the reason why a mapping (address => Car[]) it's been created even if address is a data already included into the Struct?
@smartcontractprogrammer Жыл бұрын
No particular reason. It can be removed
@jackykwan82142 жыл бұрын
Hi, thanks for the video. Is there any chance to migrate a structure? Let say I want to add a colour property to Car strict, how can I modify current structure data saved in blockchain?
@smartcontractprogrammer2 жыл бұрын
Copy all data over to a new contract
@mihaelacostea57832 жыл бұрын
I dont think you can modify anything that was deployed on the blockchain....blockchains cannot be changed.
@mihaelacostea57832 жыл бұрын
Is struct similar to objects of type class in object orriented programming?
@smartcontractprogrammer2 жыл бұрын
I don't know type class Most programming language have a struct
@ethisfreedom Жыл бұрын
Yes its similar concept
@GyZhang-s9i Жыл бұрын
is Car[] public cars; created on memory by default?
@smartcontractprogrammer Жыл бұрын
storage
@suruxpro56032 жыл бұрын
Please make a video on how to make refferal smart contract up to 5 levels with their income their refferel referee and team
@nellykantu84283 жыл бұрын
Hello sir, the property model isn't "string memory model". Why?