From 5733b087af5713124a2bdc74f182f01f786b8935 Mon Sep 17 00:00:00 2001 From: himanshu Date: Thu, 17 Oct 2024 11:58:36 +0530 Subject: [PATCH] cleanup --- packages/node-sdk/src/Web3Auth.ts | 2 +- packages/node-sdk/src/interface.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node-sdk/src/Web3Auth.ts b/packages/node-sdk/src/Web3Auth.ts index c359b2b..56fe497 100644 --- a/packages/node-sdk/src/Web3Auth.ts +++ b/packages/node-sdk/src/Web3Auth.ts @@ -25,7 +25,7 @@ export class Web3Auth implements IWeb3Auth { const network = options.web3AuthNetwork || "mainnet"; this.options = { ...options, - web3AuthNetwork: options.web3AuthNetwork || "mainnet", + web3AuthNetwork: network, useDKG: options.useDKG !== undefined ? options.useDKG : this.getUseDKGDefaultValue(network), }; } diff --git a/packages/node-sdk/src/interface.ts b/packages/node-sdk/src/interface.ts index 1e378f0..9918ba1 100644 --- a/packages/node-sdk/src/interface.ts +++ b/packages/node-sdk/src/interface.ts @@ -58,9 +58,9 @@ export interface Web3AuthOptions { /** * set this to true when you wants keys/shares to be generated by a dkg network - * by default shares are generated in this sdk and propagated to web3auth network. * - * Default:- false + * Default:- false for sapphire network and always true for legacy networks. + * Legacy networks doesnt support non dkg flow. So this is always true for legacy networks. */ useDKG?: boolean; }