Crypto Zombies Lesson 1 ,Ch12 Putting It Together, Solidity Tutorial

Lesson Summary

Chapter 12 of Crypto Zombies ties everything we have learned so far and tests our knowledge. For the challenge we are asked to create a function named createRandomZombie which will take a parameter _name which is a string. That function is public and we use that string to call our random function, _generateRandomDna which takes a string and converts it to a big number. We then take our randDna and name our Zombie and pass those arguments into _createZombie which will create our zombie with a specific name and random DNA.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required