Refactor web3 initialization

This changes how we wait for web3 and accounts to be available and
renames web3Provider to ethProvider as we could be able to swap the
different providers (ethers.js vs. web3)
This commit is contained in:
2018-04-04 13:56:41 +02:00
parent a418ddbe52
commit 6dafc26deb
4 changed files with 49 additions and 52 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ export default Component.extend({
isValidAddress: function() {
// TODO: add proper address validation
return this.get('newContributor.address') !== '';
}.property('kredits.web3', 'newContributor.address'),
}.property('kredits.ethProvider', 'newContributor.address'),
isValidName: function() {
return isPresent(this.get('newContributor.name'));