Previous Page

Ethereum Smart Contracts with Solidity: Data & Control Structures in Solidity

Ethereum Smart Contracts with Solidity: Data & Control Structures in Solidity


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

Examine the use of data structures in Solidity such as mappings and structs and explore how to use basic control structures such as if-else statements and loops.



Expected Duration (hours)
1.2

Lesson Objectives

Ethereum Smart Contracts with Solidity: Data & Control Structures in Solidity

  • outline the key concepts covered in this course
  • demonstrate how to build a smart contract to conduct a poll using Solidity data structures and functions
  • use the deployed voting smart contract to cast votes for the available options
  • access properties related to the next block to be added to the blockchain and the current transaction from within a smart contract
  • store and access key and value pairs using Solidity's mapping data structure
  • use a mapping data structure in the voting app to record whether a voter has previously cast their ballot
  • use a struct to store and access composite data within one object
  • create and use a mapping instance to store instances of structs as values
  • recognize the syntax of if statements and for loops
  • distinguish between while and do while loops
  • recognize how to use mappings and structs in the Solidity language
  • Course Number:
    it_bccscsdj_06_enus

    Expertise Level
    Intermediate