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

@@ -58,11 +58,7 @@ module.exports = async (deployer, network, accounts) => {
logger.log("Deploy type: MysteryBoxV1");
if (RandomGeneratorAddress == "") {
await deployer.deploy(RandomGenerator,[
RandomPool[0],
RandomPool[1],
RandomPool[2],
]);
await deployer.deploy(RandomGenerator, RandomPool);
RandomGeneratorAddress = RandomGenerator.address;
logger.log("RandomGeneratorAddress: ", RandomGeneratorAddress);
}