Blockchain/Crypto Zombies4 Making the Zombie Factory - Chapter 5: Structs Chapter 5: Structs structs allow you to create more complicated data types that have multiple properties Put it to the test pragma solidity >=0.5.0 2024. 2. 6. Making the Zombie Factory - Chapter 4: Math Operations Chapter 4: Math Operations Solidity's operations are the same as in most programming languages Addition: x + y Subtraction: x - y Multiplication: x * y Division: x / y Modulus / remainder: x % y exponential operator uint x = 5 ** 2; // equal to 5^2 = 25 Put it to the test pragma solidity >=0.5.0 2024. 2. 6. Making the Zombie Factory - Chapter 3: State Variables & Integers Chapter 3: State Variables & Integers State variables are permanently stored in contract storage This means they're written to the Ethereum blockchain Put it to the test pragma solidity >=0.5.0 2024. 2. 6. Making the Zombie Factory - Chapter 2: Contracts Chapter 1은 Next만 해도 넘어감 Chapter 2: Contracts Solidity's code is encapsulated in contracts A contract is the fundamental building block of Ethereum applications All variables and functions belong to a contract, and this will be the starting point of all projects Put it to the test pragma solidity >=0.5.0 =version =0.4.0 2024. 2. 6. 이전 1 다음