Utils
contract Utils
Reference
Functions
strConcat
function strConcat(string _a, string _b, string _c) internal pure returns (string)If you want to handle concatenation of less than 3, then pass first their values and for the left pass empty strings, Function to concat at most 3 strings.
- Parameters:
_a- string_b- string_c- string- Returns:
- string concatenated
stringToBytes32
function stringToBytes32(string source) internal pure returns (bytes32)String should be less than 32 chars, Function to transform string to bytes32.
- Parameters:
source- string- Returns:
- bytes32