Use .init() instead of static .setup()
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user