Skip to content

Commit

Permalink
refactor(*): signed slc name and contract instance error
Browse files Browse the repository at this point in the history
Signed-off-by: sanket shevkar <[email protected]>
  • Loading branch information
sanketshevkar authored and jeromesimeon committed Oct 28, 2021
1 parent b4805f6 commit e88b61d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/cicero-cli/lib/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,7 @@ class Commands {
}
else {
const instanceName = instance.getIdentifier();
const version = instance.contractSignatures.length;
file = `${instanceName}.v${version}.slc`;
file = `${instanceName}.slc`;
}
Logger.info('Creating archive: ' + file);
fs.writeFileSync(file, archive);
Expand Down
2 changes: 1 addition & 1 deletion packages/cicero-core/src/contractinstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class ContractInstance extends Instance {
verify.end();
const result = verify.verify(publicKey, signature, 'hex');
if (!result) {
throw new Error('Template\'s author signature is invalid!');
throw new Error('Contract signature is invalid!');
}
}
}
Expand Down

0 comments on commit e88b61d

Please sign in to comment.