diff --git a/migrations/4_nifty_minter.js b/migrations/4_nifty_minter.js index ea14b75..383ce01 100644 --- a/migrations/4_nifty_minter.js +++ b/migrations/4_nifty_minter.js @@ -3,5 +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('0x9df24e73f40b2a911eb254a8825103723e13209c'); }; diff --git a/package.json b/package.json index b38528d..52f2bed 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "lint:js:fix": "npx eslint . --fix", "lint:sol": "npx solhint --max-warnings 0 \"contracts/**/*.sol\"", "coverage": "npx solidity-coverage", - "migrate:local": "npx truffle migrate --network local --reset && cp build/contracts/* app/src/contracts/", + "start:chain": "scripts/start_blockchain.sh", + "migrate:local": "npx truffle migrate --network local --compile-all --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/", "deploy": "npx truffle deploy", diff --git a/scripts/start_blockchain.sh b/scripts/start_blockchain.sh old mode 100644 new mode 100755 index 27c1370..f582be0 --- a/scripts/start_blockchain.sh +++ b/scripts/start_blockchain.sh @@ -1,7 +1,7 @@ #!/bin/bash # Start local test network -ganache-cli --acctKeys "./ganache-accounts.json" --noVMErrorsOnRPCResponse --gasLimit 6721975 \ +npx ganache-cli -v --acctKeys "./ganache-accounts.json" --gasLimit 6721975 \ --account="0x0355596cdb5e5242ad082c4fe3f8bbe48c9dba843fe1f99dd8272f487e70efae, 100000000000000000000" \ --account="0xe9aebe8791ad1ebd33211687e9c53f13fe8cca53b271a6529c7d7ba05eda5ce2, 100000000000000000000" \ --account="0x6f36842c663f5afc0ef3ac986ec62af9d09caa1bbf59a50cdb7334c9cc880e65, 100000000000000000000" \