Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshuchawla009 committed Oct 17, 2024
1 parent 8ad7d77 commit 5733b08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/node-sdk/src/Web3Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};
}
Expand Down
4 changes: 2 additions & 2 deletions packages/node-sdk/src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 5733b08

Please sign in to comment.