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

Method constructor

src/errors/abi.ts:52–63  ·  view source on GitHub ↗
({ data, size }: { data: Hex; size: number })

Source from the content-addressed store, hash-verified

50 }
51export class AbiDecodingDataSizeInvalidError extends BaseError {
52 constructor({ data, size }: { data: Hex; size: number }) {
53 super(
54 [
55 `Data size of ${size} bytes is invalid.`,
56 'Size must be in increments of 32 bytes (size % 32 === 0).',
57 ].join('\n'),
58 {
59 metaMessages: [`Data: ${data} (${size} bytes)`],
60 name: 'AbiDecodingDataSizeInvalidError',
61 },
62 )
63 }
64}
65
66export type AbiDecodingDataSizeTooSmallErrorType =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected