UNPKG

revenue-sharing-contract

Version:

The revenue sharing contract for Mitama NFT project

23 lines (17 loc) 763 B
const {ethers, network} = require("hardhat"); async function main() { const [deployer] = await ethers.getSigners(network.config.accounts); const RevenueBuffer = await ethers.getContractFactory("RevenueBuffer"); const revenueBuffer = await RevenueBuffer.connect(deployer).deploy(); await revenueBuffer.deployed(); console.log("Contract deployed to:", revenueBuffer.address, "from ", deployer.address); } main().catch((error) => { console.error(error); process.exitCode = 1; }); // Memo: deploy and verify // npx hardhat run --network rinkeby ./scripts/deployRevenueSharing.js //// Need to have artifacts before verification // npx hardhat compile --force // npx hardhat verify <deployed contract address> --network rinkeby