Converts a boolean value to a Uint8Array of bytes.
import { boolToBytes } from "thirdweb/utils";const bytes = boolToBytes(true);console.log(bytes); // Uint8Array(1) [ 1 ]
function boolToBytes( value: boolean, opts: BoolToBytesOpts,): Uint8Array;
The boolean value to convert.
let value: boolean;
Optional parameters for the conversion.
let opts: { size?: number };
let returnType: Uint8Array;
The Uint8Array of bytes representing the boolean value.