Skip to content

Commit

Permalink
fix setup tkey
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshuchawla009 committed Dec 10, 2024
1 parent ed54e8c commit b987009
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mpcCoreKit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1026,14 +1026,14 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
}
}
await this.handleNewUser(importTssKey);
if (importTssKey) {
throw CoreKitError.tssKeyImportNotAllowed();
}
} else {
if (importTssKey && isSfaKey) {
await this.tkey.addLocalMetadataTransitions({ input: [{ message: ONE_KEY_DELETE_NONCE }], privKey: [new BN(this.state.postBoxKey, "hex")] });
if (!this.tkey?.manualSync) await this.tkey?.syncLocalMetadataTransitions();
}
} else {
if (importTssKey) {
throw CoreKitError.tssKeyImportNotAllowed();
}
await this.handleExistingUser();
}
}
Expand Down

0 comments on commit b987009

Please sign in to comment.