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

Method constructor

src/zksync/errors/bytecode.ts:9–17  ·  view source on GitHub ↗
({
    givenLength,
    maxBytecodeSize,
  }: { givenLength: number; maxBytecodeSize: bigint })

Source from the content-addressed store, hash-verified

7
8export class BytecodeLengthExceedsMaxSizeError extends BaseError {
9 constructor({
10 givenLength,
11 maxBytecodeSize,
12 }: { givenLength: number; maxBytecodeSize: bigint }) {
13 super(
14 `Bytecode cannot be longer than ${maxBytecodeSize} bytes. Given length: ${givenLength}`,
15 { name: 'BytecodeLengthExceedsMaxSizeError' },
16 )
17 }
18}
19
20export type BytecodeLengthInWordsMustBeOddErrorType =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected