Encoding
encodeBytes32
Encodes a string as a Bytes32 string. This is used to encode ABI data.
Parameters
Parameter | Type | Description |
---|---|---|
text | string | The string to encode. |
Returns
string
The Bytes32-encoded string.
Throws
If the string is too long to fit in a Bytes32 format.
Source
Was this page helpful?