opstack-kit-chains
Version:
Support your OP-Stack network with 'opstack-kit'
41 lines • 1.86 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.BytecodeLengthMustBeDivisibleBy32Error = exports.BytecodeLengthInWordsMustBeOddError = exports.BytecodeLengthExceedsMaxSizeError = void 0;
const base_js_1 = require("../../errors/base.js");
class BytecodeLengthExceedsMaxSizeError extends base_js_1.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'
});
}
}
exports.BytecodeLengthExceedsMaxSizeError = BytecodeLengthExceedsMaxSizeError;
class BytecodeLengthInWordsMustBeOddError extends base_js_1.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'
});
}
}
exports.BytecodeLengthInWordsMustBeOddError = BytecodeLengthInWordsMustBeOddError;
class BytecodeLengthMustBeDivisibleBy32Error extends base_js_1.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'
});
}
}
exports.BytecodeLengthMustBeDivisibleBy32Error = BytecodeLengthMustBeDivisibleBy32Error;
//# sourceMappingURL=bytecode.js.map
;