opstack-kit-chains
Version:
Support your OP-Stack network with 'opstack-kit'
35 lines • 1.38 kB
JavaScript
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