UNPKG

opstack-kit-chains

Version:
35 lines 1.38 kB
import { BaseError } from '../../errors/base.js'; export class BytecodeLengthExceedsMaxSizeError extends BaseError { constructor({ givenLength, maxBytecodeSize, }) { super(`Bytecode cannot be longer than ${maxBytecodeSize} bytes. Given length: ${givenLength}`); Object.defineProperty(this, "name", { enumerable: true, configurable: true, writable: true, value: 'BytecodeLengthExceedsMaxSizeError' }); } } export class BytecodeLengthInWordsMustBeOddError extends BaseError { constructor({ givenLengthInWords }) { super(`Bytecode length in 32-byte words must be odd. Given length in words: ${givenLengthInWords}`); Object.defineProperty(this, "name", { enumerable: true, configurable: true, writable: true, value: 'BytecodeLengthInWordsMustBeOddError' }); } } export class BytecodeLengthMustBeDivisibleBy32Error extends BaseError { constructor({ givenLength }) { super(`The bytecode length in bytes must be divisible by 32. Given length: ${givenLength}`); Object.defineProperty(this, "name", { enumerable: true, configurable: true, writable: true, value: 'BytecodeLengthMustBeDivisibleBy32Error' }); } } //# sourceMappingURL=bytecode.js.map