Skip to content

Commit

Permalink
refactor(cli): removal of duplicate verify command
Browse files Browse the repository at this point in the history
Signed-off-by: sanket shevkar <[email protected]>
  • Loading branch information
sanket shevkar authored and jeromesimeon committed Sep 27, 2021
1 parent 24f01f4 commit b023c3f
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions packages/cicero-cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b023c3f

Please sign in to comment.