Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Merge pull request #58 from ConsenSys/truffle-security
Browse files Browse the repository at this point in the history
Change 'analyze' to security in help, toolId and some other places
  • Loading branch information
rocky committed Feb 6, 2019
2 parents b5572b1 + 4db7492 commit cb50186
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ function versionJSON2String(jsonResponse) {

/**
*
* Handles: truffle run analyze --help
* Handles: truffle run verify --help
*
* @returns promise which resolves after help is shown
*/
function printHelpMessage() {
return new Promise(resolve => {
const helpMessage = `Usage: truffle run analyze [options] [*contract-name1* [*contract-name2*] ...]
const helpMessage = `Usage: truffle run verify [options] [*contract-name1* [*contract-name2*] ...]
Runs MythX analyses on given Solidity contracts. If no contracts are
given, all are analyzed.
Expand Down Expand Up @@ -92,7 +92,7 @@ Options:

/**
*
* Handles: truffle run analyze --version
* Handles: truffle run verify --version
* Shows version information for this plugin and each of the MythX components.
*
* @returns promise which resolves after MythX version information is shown
Expand Down Expand Up @@ -254,7 +254,7 @@ async function analyze(config) {
await contractsCompile(config);


// Extract list of contracts passed in cli to analyze
// Extract list of contracts passed in cli to verify
const contractNames = config._.length > 1 ? config._.slice(1, config._.length) : null;

// Get list of smart contract build json files from truffle build folder
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const helpers = require('./helpers');

/**
*
* Main "truffle run analyze" entry point.
* Main "truffle run verify" entry point.
*
* @param {config} Object a `truffle-config` configuration object
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/mythx.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const path = require('path');

// Take truffle's build/contracts/xxx.json JSON and make it
// compatible with the Mythril Platform API
const truffle2MythXJSON = function(truffleJSON, toolId = 'truffle-analyze') {
const truffle2MythXJSON = function(truffleJSON, toolId = 'truffle-security') {
const {
contractName,
bytecode,
Expand Down
2 changes: 1 addition & 1 deletion test/sample-truffle/sample_import/truffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
plugins: [
'truffle-analyze'
'truffle-security'
]
};

0 comments on commit cb50186

Please sign in to comment.