drops testing

This commit is contained in:
owen05
2021-05-24 20:32:05 +08:00
parent c080031b8b
commit d85411e8d9
10 changed files with 315 additions and 22 deletions

View File

@@ -15,7 +15,7 @@ const InitializableERC721 = artifacts.require("InitializableERC721");
const InitializableERC1155 = artifacts.require("InitializableERC1155");
const NFTTokenFactory = artifacts.require("NFTTokenFactory");
const MysteryBoxV1 = artifacts.require("MysteryBoxV1");
const DODODropsV1 = artifacts.require("DODODropsV1");
const RandomGenerator = artifacts.require("RandomGenerator");
module.exports = async (deployer, network, accounts) => {
@@ -61,10 +61,10 @@ module.exports = async (deployer, network, accounts) => {
}
if (MysteryBoxV1Address == "") {
await deployer.deploy(MysteryBoxV1);
MysteryBoxV1Address = MysteryBoxV1.address;
await deployer.deploy(DODODropsV1);
MysteryBoxV1Address = DODODropsV1.address;
logger.log("MysteryBoxV1Address: ", MysteryBoxV1Address);
const MysteryBoxV1Instance = await MysteryBoxV1.at(MysteryBoxV1Address);
const MysteryBoxV1Instance = await DODODropsV1.at(MysteryBoxV1Address);
var tx = await MysteryBoxV1Instance.init(
"DODOMysteryBox",
"DODOBox",