becrypto/migrations/2_deploy_hero.js
2022-01-10 19:10:54 +08:00

9 lines
233 B
JavaScript

const Hero = artifacts.require('BEHero');
module.exports = async function (deployer) {
await deployer.deploy(Hero);
const instance = await Hero.deployed();
if(instance) {
console.log("BEHero successfully deployed.")
}
};