Crypto Zombies Lesson 2, Chapter 4, Require, Solidity Require Statements

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



Duration: 3:45
292 views
8


In this Chapter of Crypto Zombies we look at the require statement in Solidity. Solidity require statements allow us to run a function if a condition is true. If the condition is false it will stop execution of the function and throw and error. In this specific Solidity challenge we are asked to place a requirei statement in the beginning of our createRandomZombie function. Our statement should check to make sure the current address which called ownerZombieCount, hasn't created any zombies yet. If it is there first zombie then it will allow them since they don't have any(0) yet.




Other Videos By We Will Code


2018-06-18Codecademy's Learn Express, Matching Route Paths, Understanding Express JS
2018-06-15Codecademy's Learn Express, Sending a Response, Nodejs Backend
2018-06-14Codecademy's Learn Express, Writing Your First Route
2018-06-13Codecademy's Learn Express, Starting a Server, Back-End Apps
2018-06-13Learn Express JS, Back-End Programming Tutorial, Codecademy
2018-06-09Crypto Zombies Lesson 2, Chapter 8, Zombie DNA, Solidity DApp
2018-06-03Crypto Zombies Lesson 2, Chapter 7, Storage vs Memory
2018-06-01Crypto Zombies Lesson 2, Chapter 6, Import, Imports in Solidity
2018-05-27An Intro to Coding, Codecademy's Welcome To Codecademy Tutorial, Codecademy Starter Kit
2018-05-13Crypto Zombies Lesson 2, Chapter 5, Inheritance, Solidity Walkthrough
2018-05-11Crypto Zombies Lesson 2, Chapter 4, Require, Solidity Require Statements
2018-05-10Crypto Zombies Lesson 2, Chapter 3 Msg.sender, Solidity Language
2018-05-06Crypto Zombies Lesson 2, Chapter 2 Mappings and Addresses
2018-05-06Codecademy Learn Java, Data Structures Generalizations
2018-05-02Crypto Zombies, Chapter 2 Overview,Solidity Programming
2018-05-02Codecademy Learn Java, HashMap Access, Accessing a HashMap
2018-04-28Crypto Zombies Lesson 1 ,Ch14 Web3.js, Solidity Events
2018-04-28Codecademy Learn Java, HashMap, 2018 Programming
2018-04-28Crypto Zombies Lesson 1, Ch13 Events, Solidity Events
2018-04-27Codecademy Learn Java, For Each Loop, Programming in 2018
2018-04-26Conceptos Basicos de HTML, Imagenes y Enlaces, Aprende,



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