checkpoint

Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
VoR0220 2018-06-05 09:19:28 -05:00
parent 4858f8a19f
commit 28d1d585fe
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class ContractFuzzer {
console.log("ARRAY OBJ:", regexObj); console.log("ARRAY OBJ:", regexObj);
let type = regexObj[1]; let type = regexObj[1];
let size = regexObj[3]; let size = regexObj[3];
switch(true) { /*switch(true) {
case (regexObj[2] !== undefined): case (regexObj[2] !== undefined):
let length = regexObj[5] === undefined ? self.generateRandomInt(256) : regexObj[5]; let length = regexObj[5] === undefined ? self.generateRandomInt(256) : regexObj[5];
return self.generateArrayOfType(length, type) return self.generateArrayOfType(length, type)
@ -58,7 +58,7 @@ class ContractFuzzer {
return self.generateRandomAddress(); return self.generateRandomAddress();
default: default:
throw new Error("Couldn't find proper ethereum abi type"); throw new Error("Couldn't find proper ethereum abi type");
} }*/
} }
generateRandomBool() { generateRandomBool() {