From 3718f35efd2ee3917f48b1c791b65ffc04a87c75 Mon Sep 17 00:00:00 2001 From: Addison Beck Date: Mon, 31 Jan 2022 18:00:19 -0500 Subject: [PATCH] [chore] Update jslib (#459) --- jslib | 2 +- src/bw.ts | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/jslib b/jslib index e372bf242b..92a65b7b36 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit e372bf242b24f55c1142e33693ad2c801ab74c93 +Subproject commit 92a65b7b368a8dbf55350657674c90169b04c30b diff --git a/src/bw.ts b/src/bw.ts index 39b19fb149..79d5b7e664 100644 --- a/src/bw.ts +++ b/src/bw.ts @@ -50,7 +50,11 @@ import { Program } from "./program"; import { SendProgram } from "./send.program"; import { VaultProgram } from "./vault.program"; -import { Account, AccountFactory } from "jslib-common/models/domain/account"; +import { Account } from "jslib-common/models/domain/account"; +import { GlobalState } from "jslib-common/models/domain/globalState"; + +import { GlobalStateFactory } from "jslib-common/factories/globalStateFactory"; +import { StateFactory } from "jslib-common/factories/stateFactory"; // Polyfills (global as any).DOMParser = new jsdom.JSDOM().window.DOMParser; @@ -131,7 +135,8 @@ export class Main { this.stateMigrationService = new StateMigrationService( this.storageService, - this.secureStorageService + this.secureStorageService, + new GlobalStateFactory(GlobalState) ); this.stateService = new StateService( @@ -139,7 +144,7 @@ export class Main { this.secureStorageService, this.logService, this.stateMigrationService, - new AccountFactory(Account) + new StateFactory(GlobalState, Account) ); this.cryptoService = new CryptoService(