becrypto/migrations/2_depoly_presale.js
2022-10-14 13:50:00 +08:00

13 lines
447 B
JavaScript

const Box = artifacts.require("tokens/erc721/BEPresaleBox");
const config = require("../config/config");
module.exports = async function (deployer, network, accounts) {
await deployer.deploy(Box);
const boxInstance = await Box.deployed();
if (boxInstance) {
console.log("BEPresaleBox successfully deployed.");
}
await boxInstance.updateBaseURI(config.token.baseTokenURI);
await boxInstance.setMintFactory(config.admins.admin);
};