Converts many data types to string

address

function simToString(address data) internal returns (string string_)

Parameters

NameTypeDescription
dataaddressthe value to convert

Return Values

NameTypeDescription
string_stringthe given value as a base 16 0x prefixed string

bool

function simToString(bool b) internal pure returns (string)

bytes

function simToString(bytes data) internal returns (string string_)

Parameters

NameTypeDescription
databytesthe value to convert

Return Values

NameTypeDescription
string_stringthe given value as a base 16 0x prefixed string

bytes32

function simToString(bytes32 data) internal returns (string string_)

Parameters

NameTypeDescription
databytes32the value to convert

Return Values

NameTypeDescription
string_stringthe given value as a base 16 0x prefixed string

uint256

function simToString(uint256 data) internal returns (string string_)

Parameters

NameTypeDescription
datauint256the value to convert

Return Values

NameTypeDescription
string_stringthe given value as a base 10 string

uint256[]

function simToString(uint256[] data) internal returns (string string_)

Parameters

NameTypeDescription
datauint256[]the value to convert

Return Values

NameTypeDescription
string_stringthe given value as a base 10 string