Use .init() instead of static .setup()

This commit is contained in:
2018-04-21 11:58:17 +02:00
parent 1b2b1bd447
commit acd1ce28f4
2 changed files with 12 additions and 8 deletions
+4 -1
View File
@@ -60,7 +60,10 @@ export default Service.extend({
ethSigner = ethProvider.getSigner();
}
return Kredits.setup(ethProvider, ethSigner, config.ipfs).then((kredits) => {
let kredits = new Kredits(ethProvider, ethSigner);
return kredits
.init()
.then((kredits) => {
this.set('kredits', kredits);
if (this.currentUserAccounts && this.currentUserAccounts.length > 0) {