Skip to main content

Function: addHexPrefix()

function addHexPrefix(str): 0x${string}

Add the hex prefix to the hex string.

Parameters

ParameterType

str

string

Returns

0x${string}

The string with the prefix.

Defined

@nilfoundation/niljs/src/utils/hex.ts:32