becrypto/migrations/2_deploy_hero.js
2022-01-07 15:04:13 +08:00

9 lines
249 B
JavaScript

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