Zombie {
String name;
Uint dna;
}
zombies is an array of Zombie
Zombie[ ] public zombies;
_zombieId is a parameter, a uint
I passed in _zombieId to the array right?
Which gets stored in the myZombie variable which is a struct
What did I then store?
An array or a struct
No, you pass Zombie to the array _zombieId is an id of the zombi object and at the same time _zombieId is an index of this zombie in array
I just checked a previous code and I saw the understanding 😂 Thanks a lot man 😊
Обсуждают сегодня