MCPcopy Create free account
hub / github.com/wevm/viem / constructor

Method constructor

src/errors/encoding.ts:49–54  ·  view source on GitHub ↗
(hex: Hex)

Source from the content-addressed store, hash-verified

47}
48export class InvalidHexBooleanError extends BaseError {
49 constructor(hex: Hex) {
50 super(
51 `Hex value "${hex}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,
52 { name: 'InvalidHexBooleanError' },
53 )
54 }
55}
56
57export type InvalidHexValueErrorType = InvalidHexValueError & {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected