Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fix: added forgotten deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gagdiez committed Jan 23, 2024
1 parent 37fbb7b commit 16b38a0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions commands/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const chalk = require('chalk');

module.exports = [
{
command: ['clean', 'repl', 'stake', 'evm-call', 'evm-view', 'set-api-key', 'js'],
command: ['clean', 'repl', 'stake', 'evm-call', 'evm-view', 'set-api-key', 'js', 'validators', 'proposals'],
desc: false,
handler: deprecated
},
Expand All @@ -14,11 +14,10 @@ module.exports = [
];

async function deprecated() {
console.log(chalk`This command has been {bold.red deprecated}`);
console.log(chalk`Consider using {bold.blue near-cli-rs} instead`);
console.log(chalk`\nThis command has been {bold.red deprecated}. Consider using {bold.blue near-cli-rs} instead\n`);
}

async function deprecatedDevDeploy() {
console.log(chalk`This command has been {bold.red deprecated}`);
console.log(chalk`Please use: {bold.white near create-random-account} and {bold.white near deploy} instead`);
console.log(chalk`\nThis command has been {bold.red deprecated}`);
console.log(chalk`Please use: {bold.white near create-account <accId> --useFaucet} to create a pre-funded account, and then {bold.white near deploy} to deploy the contract\n`);
}

0 comments on commit 16b38a0

Please sign in to comment.