Skip to main content

Function: concatHex()

function concatHex(values): 0x${string}

Concatenates an array of hex strings. The hex strings are concatenated without the "0x" prefix. The resulting hex string will have the "0x" prefix.

Parameters

ParameterTypeDescription

values

readonly 0x${string}[]

An array of hex strings.

Returns

0x${string}

The concatenated hex string.

Defined

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