Struct | Solidity 0.8

  Рет қаралды 24,543

Smart Contract Programmer

Smart Contract Programmer

Күн бұрын

Пікірлер: 37
@smartcontractprogrammer
@smartcontractprogrammer 3 жыл бұрын
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
@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-lg6mv
@CNOD-lg6mv 6 ай бұрын
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!!!❤❤❤
@franckyking93
@franckyking93 3 жыл бұрын
You're awesome, man. Love your step by step explanations.
@RiquezaIntegrativa
@RiquezaIntegrativa 2 жыл бұрын
Very comprehensive explanation! Congrats!
@suri7573
@suri7573 3 жыл бұрын
thanks for the video! love how you make it short and simple
@RiquezaIntegrativa
@RiquezaIntegrativa 2 жыл бұрын
AAAAAAWWWWWSSSSOOOOMMMMMEEE EXPLANATION! Thank you!
@RiquezaIntegrativa
@RiquezaIntegrativa 2 жыл бұрын
lol, I didn't see I'd already commented below. Well, it's the 1000th time I'm watching. Very instructive!
@StrekRout
@StrekRout 3 жыл бұрын
WOW!! Keep up with the good work, you're a great teacher
@salem232
@salem232 3 жыл бұрын
Thank you boss !! 😎
@Ts2pc
@Ts2pc 2 жыл бұрын
Such a nice course!
@electronicmail6497
@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?
@immanuelpochtar9016
@immanuelpochtar9016 2 жыл бұрын
Variable that defined in memory is alive as function running. So, what is the difference between 'memory' variable and local stack variables ?
@TheGaneshshow
@TheGaneshshow 2 жыл бұрын
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
@ethisfreedom Жыл бұрын
bruh you obviously need to insert address type value for address type key🦧
@robertogarcia8842
@robertogarcia8842 2 жыл бұрын
You can expand the topic by explaining how to interact with a mapping within a struct. Thanks.
@D3athW1ng
@D3athW1ng 2 жыл бұрын
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?
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
You can. Depending on code, it might consume lower gas to load struct to memory first.
@validyor
@validyor 2 жыл бұрын
Finally, an answer to the question "wer lambo"
@ecrypto1849
@ecrypto1849 2 жыл бұрын
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" ?
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
First code is creating a struct Transaction and storing it into an array Seconde code is accessing Transaction struct stored in the array
@Bruhne
@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
@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
@smartcontractprogrammer Жыл бұрын
No particular reason. It can be removed
@jackykwan8214
@jackykwan8214 2 жыл бұрын
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?
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
Copy all data over to a new contract
@mihaelacostea5783
@mihaelacostea5783 2 жыл бұрын
I dont think you can modify anything that was deployed on the blockchain....blockchains cannot be changed.
@mihaelacostea5783
@mihaelacostea5783 2 жыл бұрын
Is struct similar to objects of type class in object orriented programming?
@smartcontractprogrammer
@smartcontractprogrammer 2 жыл бұрын
I don't know type class Most programming language have a struct
@ethisfreedom
@ethisfreedom Жыл бұрын
Yes its similar concept
@GyZhang-s9i
@GyZhang-s9i Жыл бұрын
is Car[] public cars; created on memory by default?
@smartcontractprogrammer
@smartcontractprogrammer Жыл бұрын
storage
@suruxpro5603
@suruxpro5603 2 жыл бұрын
Please make a video on how to make refferal smart contract up to 5 levels with their income their refferel referee and team
@nellykantu8428
@nellykantu8428 3 жыл бұрын
Hello sir, the property model isn't "string memory model". Why?
@smartcontractprogrammer
@smartcontractprogrammer 3 жыл бұрын
don't need to specify data location for structs
@nellykantu8428
@nellykantu8428 2 жыл бұрын
@@smartcontractprogrammer noted
@mrin0
@mrin0 6 ай бұрын
!
Verify Signature | Solidity 0.8
14:50
Smart Contract Programmer
Рет қаралды 32 М.
Deploy Any Contract | Solidity 0.8
10:49
Smart Contract Programmer
Рет қаралды 20 М.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 169 МЛН
Storage, Memory and Calldata | Solidity 0.8
6:15
Smart Contract Programmer
Рет қаралды 29 М.
Delegatecall | Solidity 0.8
9:26
Smart Contract Programmer
Рет қаралды 25 М.
Keccak256 Hash Function | Solidity 0.8
8:41
Smart Contract Programmer
Рет қаралды 16 М.
Enum | Solidity 0.8
4:22
Smart Contract Programmer
Рет қаралды 14 М.
Todo List | Solidity 0.8
8:12
Smart Contract Programmer
Рет қаралды 14 М.
Become a bash scripting pro - full course
36:00
CODE IS EVERYTHING
Рет қаралды 69 М.
Error | Solidity 0.8
5:54
Smart Contract Programmer
Рет қаралды 24 М.
Array | Solidity 0.8
7:02
Smart Contract Programmer
Рет қаралды 23 М.