From b023c3f2227075325f4483f7a3574bf439071363 Mon Sep 17 00:00:00 2001 From: sanket shevkar Date: Wed, 22 Sep 2021 11:40:14 +0530 Subject: [PATCH] refactor(cli): removal of duplicate verify command Signed-off-by: sanket shevkar --- packages/cicero-cli/index.js | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/packages/cicero-cli/index.js b/packages/cicero-cli/index.js index 2d1f497a..208f2dae 100755 --- a/packages/cicero-cli/index.js +++ b/packages/cicero-cli/index.js @@ -602,37 +602,6 @@ require('yargs') return; } }) - .command('verify', 'verify the signatures of party/individuals who have signed the contarct', (yargs) => { - yargs.option('contract', { - describe: 'path to a smart legal contract slc file', - type: 'string' - }); - yargs.option('warnings', { - describe: 'print warnings', - type: 'boolean', - default: false - }); - }, (argv) => { - if (argv.verbose) { - Logger.info(`verifying signatures of contract ${argv.contract}`); - } - - try { - argv = Commands.validateVerifyArgs(argv); - const options = { - warnings: argv.warnings, - }; - return Commands.verify(argv.contract, options) - .then((result) => { - if(result) {Logger.info(JSON.stringify(result));} - }) - .catch((err) => { - Logger.error(err.message); - }); - } catch (err){ - Logger.error(err.message); - } - }) .command('sign', 'sign a contract', (yargs) => { yargs.option('contract', { describe: 'path to a smart legal contract slc file',