Utility contract for reusable code (Util.sol)

View Source: contracts/libraries/Util.sol

Util

Functions

upper

Changes a string to upper case

function upper(string _base) internal pure
returns(string)

Arguments

Name

Type

Description

_base

string

String to change

stringToBytes32

Arguments

Name

Type

Description

_source

string

bytesToBytes32

Arguments

Name

Type

Description

_b

bytes

_offset

uint256

bytes32ToString

Changes the bytes32 into string

Arguments

Name

Type

Description

_source

bytes32

that need to convert into string

getSig

Gets function signature from _data

Returns

bytes4 sig

Arguments

Name

Type

Description

_data

bytes

Passed data

Last updated

Was this helpful?