minor cleanup
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
parent
539c035aa6
commit
cd67500dd1
|
@ -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);
|
||||
for (let key in fuzzMap[name]) self.logger.info("iteration: " + key + "\n" + fuzzMap[name][key]);
|
||||
self.logger.info("iteration: " + i + "\n" + fuzzMap[name][key]);
|
||||
}
|
||||
});
|
||||
self.logger.info('\n');
|
||||
return fuzzMap;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue