Crypto Zombies Lesson 2, Chapter 2 Mappings and Addresses

Lesson Summary

In this Crypto Zombie chapter we begin looking at some new data types. We first go over a Solidity address. An address in solidity is likened to a bank account address. Just as eash bank account owner has a bank account address, every user on the blockchain has an address( or every smart contract has an address, however you want to look at it...) Second we look at mappings. We are told a mapping is basically a key-value store for looking up and also for storing data. For our challenge we create 2 mappings one that will keep track of the address which owns the zombie, second a mapping which will keep track of how many zombies a user has.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required