becrypto/migrations/9_deploy_factory.js
2023-01-11 18:04:28 +08:00

17 lines
553 B
JavaScript

const Factory = artifacts.require('logic/MinterFactory');
const UserFactory = artifacts.require('logic/UserMinterFactory');
module.exports = async function (deployer, network, accounts) {
await deployer.deploy(Factory);
const factoryInstance = await Factory.deployed();
if(factoryInstance) {
console.log("Mint Factory successfully deployed.")
}
await deployer.deploy(UserFactory);
const userFactoryInstance = await UserFactory.deployed();
if(userFactoryInstance) {
console.log("User Mint Factory successfully deployed.")
}
}