You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
console.log('Truffle Security is being deprecated, you should now use the MythX CLI, which also has full support for Truffle projects. Learn more at: https://github.com/dmuhs/mythx-cli')
/**
*
* Main "truffle run verify" entry point.
*
* @param {config} Object a `truffle-config` configuration object
*/
module.exports = async (config) => {
config.logger = config.logger || console;
if (config.help) return helpers.printHelpMessage();
if (config.version) return helpers.printVersion();
try {
const returnCode = await helpers.analyze(config)
if (returnCode === 0) {
return;
} else if (returnCode === 1) {
console.log('Non-zero exit');
exit(1);
} else {
throw 'Unexpected Error occured. return value of analyze should be either 0 or 1'