UNPKG

@matterlabs/hardhat-zksync-deploy

Version:
21 lines 820 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.taskWithEraTestNode = void 0; const context_1 = require("hardhat/internal/context"); const global_tasks_1 = require("./global-tasks"); function taskWithEraTestNode(name, description, withNode, action) { const ctx = context_1.HardhatContext.getHardhatContext(); const dsl = ctx.tasksDSL; if (withNode) { if (!global._zkSyncTasksForWrapping) { global._zkSyncTasksForWrapping = new global_tasks_1.ZKSyncTasksForWrapping(); } global._zkSyncTasksForWrapping.addTask(name); } if (description === undefined) { return dsl.task(name); } return dsl.task(name, description, action); } exports.taskWithEraTestNode = taskWithEraTestNode; //# sourceMappingURL=config-env.js.map