Crypto Zombies Lesson 2, Chapter 2 Mappings and Addresses

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=LZcpKgvYh2k



Duration: 4:21
294 views
5


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.







Tags:
solidity programming
crypto zombies tutorial
mappings and addresses
solidity contract