Skip to content

Commit

Permalink
feat: add is-initialized helper on folks core
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanofa committed May 27, 2024
1 parent 85678f9 commit bd09efc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xchain/core/folks-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export class FolksCore {
return FolksCore.instance;
}

static isInitialized(): boolean {
return !!FolksCore.instance;
}

static getInstance(): FolksCore {
if (FolksCore.instance) return FolksCore.instance;
throw new Error("FolksCore is not initialized");
Expand Down

0 comments on commit bd09efc

Please sign in to comment.