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
+2 -2
View File
@@ -44,7 +44,7 @@ export default Ember.Service.extend({
return this.get('kreditsContractInstance');
}
let contract = kreditsContracts(this.get('web3'))['Kredits'];
let contract = kreditsContracts(this.get('web3'), config.contractMetadata)['Kredits'];
this.set('kreditsContractInstance', contract);
window.Kredits = contract;
@@ -56,7 +56,7 @@ export default Ember.Service.extend({
return this.get('tokenContractInstance');
}
let contract = kreditsContracts(this.get('web3'), config.ethereumChain)['Token'];
let contract = kreditsContracts(this.get('web3'), config.contractMetadata)['Token'];
this.set('tokenContractInstance', contract);
window.Token = contract;
return contract;