Use kredits-contracts from npm

This also configures the npm scripts to work with locally deployed
contracts
This commit is contained in:
2017-05-08 13:00:33 +02:00
parent 675dff7314
commit 3be14b945a
3 changed files with 13 additions and 4 deletions
+7
View File
@@ -46,6 +46,13 @@ module.exports = function(environment) {
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
ENV.ethereumChain = 'dev';
ENV.contractMetadata = {};
if (process.env.KREDITS_CONTRACT_ADDR) {
ENV.contractMetadata['Kredits'] = { address: process.env.KREDITS_CONTRACT_ADDR };
}
if (process.env.TOKEN_CONTRACT_ADDR) {
ENV.contractMetadata['Token'] = { address: process.env.TOKEN_CONTRACT_ADDR };
}
}
if (environment === 'test') {