becrypto/migrations/4_deploy_hero.js
2022-04-16 08:23:15 +08:00

10 lines
303 B
JavaScript

const Hero = artifacts.require('BEHero');
const config = require("../config/config");
module.exports = async function (deployer, network, accounts) {
await deployer.deploy(Hero);
const heroInstance = await Hero.deployed();
if(heroInstance) {
console.log("BEHero successfully deployed.")
}
}