Value Type
Here are some data types available in Solidity. When they are used as function arguments or variable assignments, their values are copied over to the new variable.
boolean
int
uint
address
bytes32
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
contract ValueTypes {
// Write your code here
bool public b = true;
int public i = -111;
uint public u = 123;
address public addr = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
bytes32 public b32 =
0x89c58ced8a9078bdef2bb60f22e58eeff7dbfed6c2dff3e7c508b629295926fa;
}
Last updated
Was this helpful?