@solarity/hardhat-migrate
Version:
The simplest way to deploy smart contracts
19 lines • 632 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MigrateError = void 0;
class MigrateError extends Error {
constructor(message, options) {
super(message);
this.name = this.constructor.name;
let stack = this.stack;
if (options?.cause instanceof Error && options.cause.stack) {
stack = options.cause.stack
.split("\n")
.filter((line) => !line.includes("___ErrorCatcher"))
.join("\n");
}
this.stack = stack;
}
}
exports.MigrateError = MigrateError;
//# sourceMappingURL=errors.js.map