Use kredits-contracts from npm
This also configures the npm scripts to work with locally deployed contracts
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user