Skip to content

Commit

Permalink
add npm install command to update the plugin in the messages (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
dule-git authored Sep 26, 2024
1 parent 96a9c9a commit b79eca9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/hre-extender-v1/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function printErrorIfEthersAndHardhatTenderlyVersionsArentCompatible(hre: Hardha
console.log(
"\x1b[31m%s%s\x1b[0m", // print in red color
`The '@tenderly/hardhat-tenderly@${hardhatTenderlyVersion}' doesn't support 'ethers@${ethersVersion}'.\n`,
`Please update the plugin to the latest '@tenderly/hardhat-tenderly@${compatibleHardhatTenderlyVersion}'\n`,
`Please update the plugin to the latest hardhat-tenderly version: 'npm install @tenderly/hardhat-tenderly@${compatibleHardhatTenderlyVersion}'\n`,
);
}
}
Expand All @@ -180,7 +180,7 @@ async function printWarningIfVersionIsOutdated(hre: HardhatRuntimeEnvironment, h
if (isVersionOutdated) {
console.log(
"\x1b[33m%s\x1b[0m%s", // print in yellow color
`Please update the plugin to the new version: '@tenderly/hardhat-tenderly@${latestHardhatTenderlyVersion}'\n`,
`Please update the plugin to the new version: 'npm install @tenderly/hardhat-tenderly@^${latestHardhatTenderlyVersion}'\n`,
"You can disable this message by setting the ‘TENDERLY_ENABLE_OUTDATED_VERSION_CHECK=false’ environment variable.",
);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/hre-extender-v2/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function printErrorIfEthersAndHardhatTenderlyVersionsArentCompatible(hre: Hardha
console.log(
"\x1b[31m%s%s\x1b[0m", // print in red color
`The '@tenderly/hardhat-tenderly@${hardhatTenderlyVersion}' doesn't support 'ethers@${ethersVersion}'.\n`,
`Please update the plugin to the latest '@tenderly/hardhat-tenderly@${compatibleHardhatTenderlyVersion}'\n`,
`Please update the plugin to the latest hardhat-tenderly version: 'npm install @tenderly/hardhat-tenderly@${compatibleHardhatTenderlyVersion}'\n`,
);
}
}
Expand All @@ -209,7 +209,7 @@ async function printWarningIfVersionIsOutdated(hre: HardhatRuntimeEnvironment, h
if (isVersionOutdated) {
console.log(
"\x1b[33m%s\x1b[0m%s", // print in yellow color
`Please update the plugin to the new version: '@tenderly/hardhat-tenderly@${latestHardhatTenderlyVersion}'\n`,
`Please update the plugin to the new version: 'npm install @tenderly/hardhat-tenderly@^${latestHardhatTenderlyVersion}'\n`,
"You can disable this message by setting the ‘TENDERLY_ENABLE_OUTDATED_VERSION_CHECK=false’ environment variable.",
);
}
Expand Down

0 comments on commit b79eca9

Please sign in to comment.