【CryptoZombies】lesson1 Chapter 3: State Variables & Integers

The uint data type is an unsigned integer, meaning its value must be non-negative. There's also an int data type for signed integers.

In Solidity, uint is actually an alias for uint256, a 256-bit unsigned integer. You can declare uints with less bits — uint8, uint16, uint32, etc.. 


test

pragma solidity >=0.5.0 <0.6.0;

contract ZombieFactory {

   //start here
   uint dnaDigits = 16;

}

Words I didn't know
・state variables:状態変数
・integers:整数
・unsigned:符号なし


この記事が気に入ったらサポートをしてみませんか?