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

Method constructor

src/errors/data.ts:25–40  ·  view source on GitHub ↗
({
    size,
    targetSize,
    type,
  }: {
    size: number
    targetSize: number
    type: 'hex' | 'bytes'
  })

Source from the content-addressed store, hash-verified

23}
24export class SizeExceedsPaddingSizeError extends BaseError {
25 constructor({
26 size,
27 targetSize,
28 type,
29 }: {
30 size: number
31 targetSize: number
32 type: 'hex' | 'bytes'
33 }) {
34 super(
35 `${type.charAt(0).toUpperCase()}${type
36 .slice(1)
37 .toLowerCase()} size (${size}) exceeds padding size (${targetSize}).`,
38 { name: 'SizeExceedsPaddingSizeError' },
39 )
40 }
41}
42
43export type InvalidBytesLengthErrorType = InvalidBytesLengthError & {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected