Skip to content

Commit

Permalink
refactor(*): removal of commented code and logger message correction …
Browse files Browse the repository at this point in the history
…(last gsoc commit)

Signed-off-by: sanket shevkar <[email protected]>
  • Loading branch information
sanketshevkar authored and jeromesimeon committed Oct 28, 2021
1 parent 554ee04 commit e31e2fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
8 changes: 4 additions & 4 deletions packages/cicero-cli/lib/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,16 +657,16 @@ class Commands {
argv = Commands.validateCommonArgs(argv);

if (!argv.keystore) {
throw new Error('please define path of the keystore using --keystore');
throw new Error('Please define path of the keystore using --keystore');
}
if (!argv.passphrase) {
throw new Error('please define the passphrase of the keystore using --pasphrase');
throw new Error('Please define the passphrase of the keystore using --pasphrase');
}
if (!argv.signatory) {
throw new Error('please define the signatory signing the contract using --signatory');
throw new Error('Please define the signatory signing the contract using --signatory');
}
if(argv.verbose) {
Logger.info(`verifying signatures of contract ${argv.contract}`);
Logger.info(`Verifying signatures of contract ${argv.contract}`);
}

return argv;
Expand Down
12 changes: 0 additions & 12 deletions packages/cicero-core/src/instancesaver.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,6 @@ class InstanceSaver {
throw new Error('runtime is required and must be a string');
}

// if (instance.contractSignatures.length === 0) {
// const contractModel = Util.getContractModel(instance.logicManager, instance.instanceKind);
// const properties = contractModel.getProperties();
// properties.map((property) => property.getDecorators().map((decorator) => {
// if (decorator.getName() === 'ContractParty') {
// const data = instance.data;
// const partyName = data[property.name];
// instance.parties.push(partyName);
// }
// }));
// }

let zip = new JSZip();

// save the metadata
Expand Down

0 comments on commit e31e2fa

Please sign in to comment.