pub const fn bool_to_bytes32(value: bool) -> Bytes
Converts a boolean to a left-padded 32-byte Bytes value.
Bytes
This is optimized to not allocate at runtime by using 2 static arrays.