becrypto/migrations/6_deploy_factory.js
2023-06-06 18:34:30 +08:00

23 lines
625 B
JavaScript

const UserFactory = artifacts.require("logic/UserMinterFactory");
const base = require("../scripts/base");
module.exports = async function (deployer, network, accounts) {
await deployer.deploy(UserFactory);
const userFactoryInstance = await UserFactory.deployed();
if (userFactoryInstance) {
console.log("User Mint Factory successfully deployed.");
}
let cfgs = base.updateArray({
name: "UserMinterFactory",
type: "logic",
json: "assets/contracts/UserMinterFactory.json",
address: userFactoryInstance.address,
network,
});
// // update settings
// for (let cfg of cfgs) {
// }
};