Encoding
decodeBytes32
Decodes a Bytes32-encoded string into a regular string. This is used to decode ABI-encoded data.
Parameters
Parameter | Type | Description |
---|---|---|
_bytes | BytesLike | The Bytes32-encoded data. |
Returns
string
The decoded string.
Throws
If the input is not exactly 32 bytes long or lacks a null terminator.
Source
Was this page helpful?