Crypto Zombies Lesson 1, Ch13 Events, Solidity Events

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



Duration: 4:28
866 views
8


In this chapter of Crypto Zombies we finally look at events in Solidity. Events allow us to listen to our code. First an event is declared then somewhere in our code we fire the event when a specific thing happens. Once our even is fired we then can run another piece of code as result of the event being fired. In our Chapter 13 challenge we are asked to first declare an event called NewZombie. We are asked to modify what happens after we create a zombie. We grab the integer that is returned from using the .push method(which is the length of the array) and subtract 1 from that number to grab the correct index of the zombie we create and assign it to a uint variable named id. We then go into our _createZombie function and fire our event whenever our _createZombie function is called. Once it is called we can then fire some other piece of code.




Other Videos By We Will Code


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,
2018-04-25Codecademy Learn Java, Iterating over an ArrayList
2018-04-24Crypto Zombies Lesson 1 ,Ch12 Putting It Together, Solidity Tutorial
2018-04-23Codecademy Learn Java, ArrayList Insertion, Data Structures
2018-04-23Crypto Zombies Lesson 1 ,Ch11 Keccak256 and Typecasting, Solidity Programming
2018-04-22Crypto Zombies Lesson 1 ,Ch10 More on Functions, Solidity Pure Vs View Function
2018-04-22Crypto Zombies Lesson 1 ,Ch9 Private Public Functions
2018-04-22Crypto Zombies Lesson 1 ,Ch8 Working With Structs and Arrays
2018-04-22Crypto Zombies ,Ch7 Function Declarations, Solidity Programming Language



Tags:
solidity programming
crypto zombies tutorial
events in solidity
solidity contract
blockchain