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

Method constructor

src/errors/abi.ts:116–129  ·  view source on GitHub ↗
({
    expectedLength,
    givenLength,
    type,
  }: { expectedLength: number; givenLength: number; type: string })

Source from the content-addressed store, hash-verified

114 }
115export class AbiEncodingArrayLengthMismatchError extends BaseError {
116 constructor({
117 expectedLength,
118 givenLength,
119 type,
120 }: { expectedLength: number; givenLength: number; type: string }) {
121 super(
122 [
123 `ABI encoding array length mismatch for type ${type}.`,
124 `Expected length: ${expectedLength}`,
125 `Given length: ${givenLength}`,
126 ].join('\n'),
127 { name: 'AbiEncodingArrayLengthMismatchError' },
128 )
129 }
130}
131
132export type AbiEncodingBytesSizeMismatchErrorType =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected