Converts a boolean value to a hexadecimal string representation.
import { boolToHex } from "thirdweb/utils";const hex = boolToHex(true);console.log(hex); // "0x01"
function boolToHex(value: boolean, opts: BoolToHexOpts): Hex;
The boolean value to convert.
let value: boolean;
Optional options for the conversion.
let opts: { size?: number };
let returnType: `0x${string}`;
The hexadecimal string representation of the boolean value.