Skip to content

Commit

Permalink
Fix reset account
Browse files Browse the repository at this point in the history
  • Loading branch information
yashovardhan committed Dec 23, 2024
1 parent 146253d commit f3b7261
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mpc-core-kit-react-native/mpc-core-kit-rn-expo-auth0/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,7 @@ function Home() {
// if (selectedNetwork === WEB3AUTH_NETWORK.MAINNET) {
// throw new Error("reset account is not recommended on mainnet");
// }
await coreKitInstance.tKey.storageLayer.setMetadata({
privKey: new BN(coreKitInstance.state.postBoxKey!, "hex"),
input: { message: "KEY_NOT_FOUND" },
});
await coreKitInstance._UNSAFE_resetAccount();
uiConsole("reset");
if (coreKitInstance.status === COREKIT_STATUS.LOGGED_IN) {
await coreKitInstance.commitChanges();
Expand Down

0 comments on commit f3b7261

Please sign in to comment.