fix random constructor

This commit is contained in:
owen05
2021-04-15 13:40:48 +08:00
parent 90cca518ba
commit 7da769f596
5 changed files with 41 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ contract RandomGenerator {
address[] public pools;
constructor(address[] memory _pools) public {
for (uint256 i = 0; i < pools.length; i++) {
for (uint256 i = 0; i < _pools.length; i++) {
pools.push(_pools[i]);
}
}