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:
@@ -31,6 +31,8 @@ export default Service.extend({
|
||||
ethProvider: null,
|
||||
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() {
|
||||
return new Ember.RSVP.Promise((resolve, reject) => {
|
||||
let ethProvider;
|
||||
|
||||
Reference in New Issue
Block a user