mirror of https://github.com/embarklabs/embark.git
checkpoint
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
parent
4858f8a19f
commit
28d1d585fe
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue