From a6cd939b66e8d701f1078705a36b3fc6533044d4 Mon Sep 17 00:00:00 2001 From: himanshu Date: Mon, 4 Nov 2024 12:40:08 +0530 Subject: [PATCH] make update state function public --- src/mpcCoreKit.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mpcCoreKit.ts b/src/mpcCoreKit.ts index 2b2362b6..3e3c9468 100644 --- a/src/mpcCoreKit.ts +++ b/src/mpcCoreKit.ts @@ -852,6 +852,10 @@ export class Web3AuthMPCCoreKit implements ICoreKit { } } + public updateState(newState: Partial): void { + this.state = { ...this.state, ...newState }; + } + protected async atomicSync(f: () => Promise): Promise { this.atomicCallStackCounter += 1; @@ -1199,10 +1203,6 @@ export class Web3AuthMPCCoreKit implements ICoreKit { await this.tKey?.addShareDescription(factorPub, JSON.stringify(params), updateMetadata); } - private updateState(newState: Partial): void { - this.state = { ...this.state, ...newState }; - } - private resetState(): void { this.ready = false; this.tkey = null;