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

Method constructor

src/errors/abi.ts:75–96  ·  view source on GitHub ↗
({
    data,
    params,
    size,
  }: { data: Hex; params: readonly AbiParameter[]; size: number })

Source from the content-addressed store, hash-verified

73 size: number
74
75 constructor({
76 data,
77 params,
78 size,
79 }: { data: Hex; params: readonly AbiParameter[]; size: number }) {
80 super(
81 [`Data size of ${size} bytes is too small for given parameters.`].join(
82 '\n',
83 ),
84 {
85 metaMessages: [
86 `Params: (${formatAbiParams(params, { includeName: true })})`,
87 `Data: ${data} (${size} bytes)`,
88 ],
89 name: 'AbiDecodingDataSizeTooSmallError',
90 },
91 )
92
93 this.data = data
94 this.params = params
95 this.size = size
96 }
97}
98
99export type AbiDecodingZeroDataErrorType = AbiDecodingZeroDataError & {

Callers

nothing calls this directly

Calls 1

formatAbiParamsFunction · 0.85

Tested by

no test coverage detected