CBool

Git Source

Functions

toBytes32

function toBytes32(bool val) internal pure returns (bytes32);

toAddress

function toAddress(bool val) internal pure returns (address);

toUint256

function toUint256(bool val) internal pure returns (uint256 converted);

k

This method should be used to convert a bool to a uint256 when used as a key in a mapping.

function k(bool val) internal pure returns (uint256);

v

This method should be used to convert a bool to a uint256 when used as a value in a mapping.

function v(bool val) internal pure returns (uint256);