Converts many data types to string
address
function simToString(address data) internal returns (string string_)
Parameters
Name | Type | Description |
---|---|---|
data | address | the value to convert |
Return Values
Name | Type | Description |
---|---|---|
string_ | string | the 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
Name | Type | Description |
---|---|---|
data | bytes | the value to convert |
Return Values
Name | Type | Description |
---|---|---|
string_ | string | the given value as a base 16 0x prefixed string |
bytes32
function simToString(bytes32 data) internal returns (string string_)
Parameters
Name | Type | Description |
---|---|---|
data | bytes32 | the value to convert |
Return Values
Name | Type | Description |
---|---|---|
string_ | string | the given value as a base 16 0x prefixed string |
uint256
function simToString(uint256 data) internal returns (string string_)
Parameters
Name | Type | Description |
---|---|---|
data | uint256 | the value to convert |
Return Values
Name | Type | Description |
---|---|---|
string_ | string | the given value as a base 10 string |
uint256[]
function simToString(uint256[] data) internal returns (string string_)
Parameters
Name | Type | Description |
---|---|---|
data | uint256[] | the value to convert |
Return Values
Name | Type | Description |
---|---|---|
string_ | string | the given value as a base 10 string |