function decodeBytes32(_bytes): string

Decodes a Bytes32-encoded string into a regular string. This is used to decode ABI-encoded data.

Parameters

ParameterTypeDescription
_bytesBytesLikeThe Bytes32-encoded data.

Returns

string

The decoded string.

Throws

If the input is not exactly 32 bytes long or lacks a null terminator.

Source

encoding/bytes32.ts:41