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

10 lines
324 B
JavaScript

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