Skip to content

Commit

Permalink
Remove solidity survey message
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Jan 10, 2023
1 parent 2fb8044 commit d9b600b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
12 changes: 1 addition & 11 deletions packages/hardhat-core/src/internal/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { saveFlamegraph } from "../core/flamegraph";
import { Analytics } from "./analytics";
import { ArgumentsParser } from "./ArgumentsParser";
import { enableEmoji } from "./emoji";
import { createProject, showSoliditySurveyMessage } from "./project-creation";
import { createProject } from "./project-creation";
import { confirmHHVSCodeInstallation, confirmTelemetryConsent } from "./prompt";
import {
InstallationState,
Expand Down Expand Up @@ -305,16 +305,6 @@ async function main() {
process.stdout.isTTY === true
) {
await suggestInstallingHardhatVscode();

// we show the solidity survey message if the tests failed and only
// 1/3 of the time
if (
process.exitCode !== 0 &&
Math.random() < 0.3333 &&
process.env.HARDHAT_HIDE_SOLIDITY_SURVEY_MESSAGE !== "true"
) {
showSoliditySurveyMessage();
}
}

log(`Killing Hardhat after successfully running task ${taskName}`);
Expand Down
16 changes: 0 additions & 16 deletions packages/hardhat-core/src/internal/cli/project-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,20 +252,6 @@ function showStarOnGitHubMessage() {
console.log(chalk.cyan(" https://github.com/NomicFoundation/hardhat"));
}

export function showSoliditySurveyMessage() {
if (new Date() > new Date("2023-07-01 23:39")) {
// the survey has finished
return;
}

console.log();
console.log(
chalk.cyan(
"Please take a moment to complete the 2022 Solidity Survey: https://hardhat.org/solidity-survey-2022"
)
);
}

export async function createProject() {
printAsciiLogo();

Expand Down Expand Up @@ -301,7 +287,6 @@ export async function createProject() {

console.log();
showStarOnGitHubMessage();
showSoliditySurveyMessage();

return;
}
Expand Down Expand Up @@ -402,7 +387,6 @@ export async function createProject() {
console.log("See the README.md file for some example tasks you can run");
console.log();
showStarOnGitHubMessage();
showSoliditySurveyMessage();
}

async function canInstallRecommendedDeps() {
Expand Down

0 comments on commit d9b600b

Please sign in to comment.