@ecp.eth/sdk / comments / encodeBoolValue
Function: encodeBoolValue()
function encodeBoolValue(value): `0x${string}`;
Defined in: packages/sdk/src/comments/metadata.ts:47
Encodes a boolean value as bytes for metadata
Parameters
value
boolean
The boolean value to encode
Returns
`0x${string}`
The hex-encoded bytes (32 bytes, 1 for true, 0 for false)