diff --git a/lib/modules/fuzzer/index.js b/lib/modules/fuzzer/index.js index 7ff4dd6b..a38dc89c 100644 --- a/lib/modules/fuzzer/index.js +++ b/lib/modules/fuzzer/index.js @@ -21,7 +21,7 @@ class ContractFuzzer { contract.abiDefinition.filter((x) => x.inputs && x.inputs.length != 0).forEach((abiMethod) => { let name = abiMethod.type === "constructor" ? "constructor" : abiMethod.name; let inputTypes = abiMethod.inputs.map(input => input.type); - fuzzMap[name] = inputTypes.map(input => this.getTypeFuzz.bind(this)); + fuzzMap[name] = inputTypes.map(input => this.getTypeFuzz(input)); }); } for (let key in fuzzMap) self.logger.info(key + ":" + fuzzMap[key]);