Use testnet for all envs for now

This commit is contained in:
2017-02-07 22:38:15 +08:00
parent 9cc4f85a69
commit 3eb58451cc
2 changed files with 3 additions and 4 deletions
+1 -3
View File
@@ -38,10 +38,8 @@ export default Ember.Service.extend({
return this.get('kreditsContractInstance');
}
let chain = {development: 'testnet', staging: 'testnet', production: 'main'}[config.environment];
let contract = kreditsContracts(this.get('web3'), chain)['Kredits'];
let contract = kreditsContracts(this.get('web3'), config.ethereumChain)['Kredits'];
window.Kredits = contract;
this.set('kreditsContractInstance', contract);
return contract;
}.property('web3'),