Use testnet for all envs for now
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user