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: Options,): Uint8Array<ArrayBufferLike>;
The boolean value to convert.
let value: boolean;
Optional parameters for the conversion.
let opts: Options;
let returnType: Uint8Array<ArrayBufferLike>;
The Uint8Array of bytes representing the boolean value.