becrypto/migrations/2_deploy_hero.js
2021-12-27 15:03:18 +08:00

9 lines
261 B
JavaScript

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