becrypto/migrations/13_deploy_luckybox.js
cebgcontract a068fda5da 1
2022-04-20 15:01:54 +08:00

24 lines
733 B
JavaScript

const LuckyBox = artifacts.require('mysterybox/BEMysteryBox');
const BoxProxy = artifacts.require('mysterybox/MysteryBoxProxy');
const Hero = artifacts.require('BEHero');
const Equip = artifacts.require('BEEquipment');
const Chip = artifacts.require('BEChip');
const config = require("../config/config");
module.exports = async function (deployer, network, accounts) {
await deployer.deploy(
LuckyBox
);
const luckyBoxInstance = await LuckyBox.deployed();
if(luckyBoxInstance) {
console.log("BELuckyBox successfully deployed.")
}
await deployer.deploy(
BoxProxy
);
const boxProxyInstance = await BoxProxy.deployed();
if(boxProxyInstance) {
console.log("LuckyBoxProxy successfully deployed.")
}
}