({
givenLength,
maxBytecodeSize,
}: { givenLength: number; maxBytecodeSize: bigint })
| 7 | |
| 8 | export 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 | |
| 20 | export type BytecodeLengthInWordsMustBeOddErrorType = |
nothing calls this directly
no outgoing calls
no test coverage detected