Skip to content

Commit

Permalink
Export ignition deploy override (#212)
Browse files Browse the repository at this point in the history
* script for version release

* initional hardhat-ignition example

* added hardhat-tenderly to ignition project

* export ignition deploy override
  • Loading branch information
dule-git authored Sep 23, 2024
1 parent cb559a5 commit fb18554
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ require("hardhat/config");
require("hardhat/plugins");
require("path");


const ignitionScope = scope(
"ignition",
"Deploy your smart contracts using Hardhat Ignition"
Expand All @@ -31,7 +30,7 @@ ignitionScope
) => {
await runSuper();

const shouldVerify = process.env.AUTOMATIC_VERIFICATION_ENABLED;
const shouldVerify = process.env.AUTOMATIC_VERIFICATION_ENABLED || process.env.TENDERLY_AUTOMATIC_VERIFICATION;
if (!shouldVerify)
return;

Expand All @@ -40,7 +39,7 @@ ignitionScope
if (deploymentId === undefined || deploymentId === "") {
throw new HardhatPluginError(
PLUGIN_NAME,
"No deployment ID provided, exiting."
"No deployment ID provided, Refer to the following link and search `hardhat-ignition`: https://docs.tenderly.co/faq/contract-verification"
);
}

Expand Down
1 change: 1 addition & 0 deletions packages/hre-extender-v2/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "./logger";
import "./extenders/extend-ignition-deploy-task";

export * from "@tenderly/hardhat-integration";
export { setup } from "./setup";
6 changes: 4 additions & 2 deletions packages/tenderly-core/src/internal/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
import { Command } from "commander";
import { NetworksCommand, LoginCommand } from "./commands";

process.openStdin().on("keypress", (chunk, key) => {
if (key && key.name === "c" && key.ctrl) {
process.stdin.setRawMode(true);
process.stdin.resume();
process.stdin.on("keypress", (chunk, key) => {
if (key &&key.name === "c" && key.ctrl) {
process.exit();
}
});
Expand Down

0 comments on commit fb18554

Please sign in to comment.