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

Method constructor

src/errors/encoding.ts:35–42  ·  view source on GitHub ↗
(bytes: ByteArray)

Source from the content-addressed store, hash-verified

33}
34export class InvalidBytesBooleanError extends BaseError {
35 constructor(bytes: ByteArray) {
36 super(
37 `Bytes value "${bytes}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,
38 {
39 name: 'InvalidBytesBooleanError',
40 },
41 )
42 }
43}
44
45export type InvalidHexBooleanErrorType = InvalidHexBooleanError & {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected