@ecp.eth/sdk / comments / decodeBoolValue
Function: decodeBoolValue()
function decodeBoolValue(encodedValue): boolean;Defined in: packages/sdk/src/comments/metadata.ts:216
Decodes a boolean value from encoded metadata bytes
Parameters
encodedValue
`0x${string}`
The hex-encoded bytes (32 bytes, 1 for true, 0 for false)
Returns
boolean
The decoded boolean value. If the value can't be decoded, it will return false.