Rename initEthProvider to getEthProvider

This commit is contained in:
2018-04-21 11:15:13 +02:00
parent 75650c19ab
commit 8fed06b494
+2 -2
View File
@@ -25,7 +25,7 @@ export default Service.extend({
// this is called in the routes beforeModel(). So it is initialized before everything else // this is 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 // and we can rely on the ethProvider and the potential currentUserAccounts to be available
initEthProvider: function() { getEthProvider: function() {
return new RSVP.Promise((resolve) => { return new RSVP.Promise((resolve) => {
let ethProvider; let ethProvider;
let networkId; let networkId;
@@ -53,7 +53,7 @@ export default Service.extend({
}, },
setup() { setup() {
return this.initEthProvider().then((ethProvider) => { return this.getEthProvider().then((ethProvider) => {
let ethSigner; let ethSigner;
if (ethProvider.getSigner) { if (ethProvider.getSigner) {