diff --git a/lib/core/engine.js b/lib/core/engine.js index 6e9faf33..dd956b69 100644 --- a/lib/core/engine.js +++ b/lib/core/engine.js @@ -189,7 +189,6 @@ class Engine { this.registerModule('solidity', {ipc: this.ipc, useDashboard: this.useDashboard}); this.registerModule('vyper'); this.registerModule('profiler'); - this.registerModule('fuzzer'); this.registerModule('deploytracker'); this.registerModule('specialconfigs'); this.registerModule('console_listener', {ipc: this.ipc}); diff --git a/lib/modules/fuzzer/index.js b/lib/modules/profiler/fuzzer.js similarity index 82% rename from lib/modules/fuzzer/index.js rename to lib/modules/profiler/fuzzer.js index 02defe93..8a07614d 100644 --- a/lib/modules/fuzzer/index.js +++ b/lib/modules/profiler/fuzzer.js @@ -7,8 +7,6 @@ class ContractFuzzer { this.embark = embark; this.logger = embark.logger; this.events = embark.events; - - this.registerConsoleCommand(); } // main function to call, takes in iteration number and a contract and returns a map object @@ -90,24 +88,6 @@ class ContractFuzzer { generateRandomAddress() { return utils.randomHex(20); } - - registerConsoleCommand() { - const self = this; - self.embark.registerConsoleCommand((cmd, _options) => { - let splitCmd = cmd.split(' '); - let cmdName = splitCmd[0]; - let contractName = splitCmd[1]; - let iterations = splitCmd[2] === undefined ? 1 : splitCmd[2]; - if (cmdName === 'fuzz') { - self.events.request('contracts:contract', contractName, (contract) => { - self.logger.info("-- fuzzed vals for " + contractName); - this.generateFuzz(iterations, contract); - }); - return ""; - } - return false; - }); - } } module.exports = ContractFuzzer; diff --git a/lib/modules/gasEstimator/index.js b/lib/modules/profiler/gasEstimator.js similarity index 98% rename from lib/modules/gasEstimator/index.js rename to lib/modules/profiler/gasEstimator.js index 2bad5a2c..41f76222 100644 --- a/lib/modules/gasEstimator/index.js +++ b/lib/modules/profiler/gasEstimator.js @@ -1,7 +1,7 @@ /*global web3*/ const async = require('async'); const _ = require('underscore'); -const ContractFuzzer = require('../fuzzer'); +const ContractFuzzer = require('./fuzzer.js'); class GasEstimator { constructor(embark) { diff --git a/lib/modules/profiler/index.js b/lib/modules/profiler/index.js index dd34719e..6bd51f2a 100644 --- a/lib/modules/profiler/index.js +++ b/lib/modules/profiler/index.js @@ -1,5 +1,5 @@ const asciiTable = require('ascii-table'); -const GasEstimator = require('../gasEstimator'); +const GasEstimator = require('./gasEstimator.js'); class Profiler { constructor(embark) {