You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -58,9 +59,24 @@ async function getAccountFromShares(args: {
58
59
shares: string[];
59
60
}): Promise<Account>{
60
61
const{ client, shares }=args;
62
+
constprivateKey=await(async()=>{
63
+
try{
64
+
returnawaitgetWalletPrivateKeyFromShares(shares);
65
+
}catch(e){
66
+
// If the private key reconstruction fails, try to reset the device share and prompt the user to try again
67
+
// This can happen if a user's account has been migrated or otherwise modified in the backend to use a new wallet. In that case, we need to reset their device state to get a new share
0 commit comments