From 23d1c1a2f05bc4a44cdc9bfa398d7d77c4d3cef4 Mon Sep 17 00:00:00 2001 From: gichiba Date: Sat, 13 Apr 2019 15:39:36 +0800 Subject: [PATCH] Add start:chain script and update migration --- migrations/4_nifty_minter.js | 3 +-- package.json | 1 + scripts/start_blockchain.sh | 0 3 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 scripts/start_blockchain.sh diff --git a/migrations/4_nifty_minter.js b/migrations/4_nifty_minter.js index 0c3c8d7..2559908 100644 --- a/migrations/4_nifty_minter.js +++ b/migrations/4_nifty_minter.js @@ -3,6 +3,5 @@ const VoluntaryCarbonUnit = artifacts.require('./VoluntaryCarbonUnit.sol'); // eslint-disable-next-line no-unused-vars module.exports = async (deployer) => { const vcu = await VoluntaryCarbonUnit.deployed(); - await vcu.addMinter('0xa24491d6378e843D7fe84bf20C589cFc5aC77562'); - await vcu.addMinter('0x6D758C3A656869bbb9431b6c67E500d24a838959'); + await vcu.addMinter('0xb77D57F4959eAfA0339424b83FcFaf9c15407461'); }; diff --git a/package.json b/package.json index b38528d..28c01a1 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "lint:js:fix": "npx eslint . --fix", "lint:sol": "npx solhint --max-warnings 0 \"contracts/**/*.sol\"", "coverage": "npx solidity-coverage", + "start:chain": "scripts/start_blockchain.sh", "migrate:local": "npx truffle migrate --network local --reset && cp build/contracts/* app/src/contracts/", "migrate:rinkeby": "npx truffle migrate --network rinkeby --reset && cp build/contracts/* app/src/contracts/", "migrate:kovan": "npx truffle migrate --network kovan --reset && cp build/contracts/* app/src/contracts/", diff --git a/scripts/start_blockchain.sh b/scripts/start_blockchain.sh old mode 100644 new mode 100755