Add comment about ethProvider loading.

It is loaded in the route and thus available for the rest of the
application.
This commit is contained in:
2018-04-04 14:02:27 +02:00
parent 6dafc26deb
commit 0812ff3467
+2
View File
@@ -31,6 +31,8 @@ export default Service.extend({
ethProvider: null, ethProvider: null,
currentUserAccounts: null, // default to not having an account. this is the wen web3 is loaded. currentUserAccounts: null, // default to not having an account. this is the wen web3 is loaded.
// this is called called in the routes beforeModel(). So it is initialized before everything else
// and we can rely on the ethProvider and the potential currentUserAccounts to be available
initEthProvider: function() { initEthProvider: function() {
return new Ember.RSVP.Promise((resolve, reject) => { return new Ember.RSVP.Promise((resolve, reject) => {
let ethProvider; let ethProvider;