From cd67500dd1c92d0e6a748de501181184ada851d8 Mon Sep 17 00:00:00 2001 From: VoR0220 Date: Tue, 12 Jun 2018 12:16:19 -0500 Subject: [PATCH] minor cleanup Signed-off-by: VoR0220 --- lib/modules/fuzzer/index.js | 5 ++--- lib/modules/gasEstimator/index.js | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/modules/fuzzer/index.js b/lib/modules/fuzzer/index.js index 6126a5e8..43095878 100644 --- a/lib/modules/fuzzer/index.js +++ b/lib/modules/fuzzer/index.js @@ -1,7 +1,6 @@ const utils = require('web3-utils'); const _ = require('underscore'); - // generates random inputs based on the inputs of an ABI class ContractFuzzer { constructor(embark) { @@ -23,9 +22,9 @@ class ContractFuzzer { fuzzMap[name] = {}; for (let i = 0; i < iterations; i++) { fuzzMap[name][i] = inputTypes.map(input => this.getTypeFuzz(input)); + self.logger.info(name); + self.logger.info("iteration: " + i + "\n" + fuzzMap[name][key]); } - self.logger.info(name); - for (let key in fuzzMap[name]) self.logger.info("iteration: " + key + "\n" + fuzzMap[name][key]); }); self.logger.info('\n'); return fuzzMap; diff --git a/lib/modules/gasEstimator/index.js b/lib/modules/gasEstimator/index.js index cfa41dca..b897ffcf 100644 --- a/lib/modules/gasEstimator/index.js +++ b/lib/modules/gasEstimator/index.js @@ -1,9 +1,8 @@ +/*global web3*/ const async = require('async'); const _ = require('underscore'); const ContractFuzzer = require('../fuzzer'); -/*global web3*/ - class GasEstimator { constructor(embark) { this.embark = embark;