Skip to content

Commit

Permalink
deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
santisiri committed Jan 2, 2021
1 parent 31116d8 commit 9c9b604
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/deploy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const deploymentParams = require('../deployment-params');

async function main() {

const [deployer] = await ethers.getSigners();
Expand All @@ -10,7 +12,12 @@ async function main() {
console.log("Account balance:", (await deployer.getBalance()).toString());

const Token = await ethers.getContractFactory("UBI");
const token = await Token.deploy();
const token = await Token.deploy(
deploymentParams.INITIAL_SUPPLY,
deploymentParams.TOKEN_NAME,
deploymentParams.TOKEN_SYMBOL,
deploymentParams.ACCRUED_PER_SECOND,
deploymentParams.PROOF_OF_HUMANITY_KOVAN);

console.log("Token address:", token.address);
}
Expand Down

0 comments on commit 9c9b604

Please sign in to comment.