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'),
+2 -1
View File
@@ -21,7 +21,8 @@ module.exports = function(environment) {
// when it is created
},
web3ProviderUrl: "https://parity.kosmos.org:8545"
web3ProviderUrl: "https://parity.kosmos.org:8545",
ethereumChain: "testnet"
};
if (environment === 'development') {