one last change
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
parent
95a06e0bf9
commit
e42cbb4ade
|
@ -21,7 +21,7 @@ class ContractFuzzer {
|
||||||
contract.abiDefinition.filter((x) => x.inputs && x.inputs.length != 0).forEach((abiMethod) => {
|
contract.abiDefinition.filter((x) => x.inputs && x.inputs.length != 0).forEach((abiMethod) => {
|
||||||
let name = abiMethod.type === "constructor" ? "constructor" : abiMethod.name;
|
let name = abiMethod.type === "constructor" ? "constructor" : abiMethod.name;
|
||||||
let inputTypes = abiMethod.inputs.map(input => input.type);
|
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]);
|
for (let key in fuzzMap) self.logger.info(key + ":" + fuzzMap[key]);
|
||||||
|
|
Loading…
Reference in New Issue