Skip to content

Commit 5a5673e

Browse files
committed
fix(sdk): throw when enclave migration fails
1 parent 4c8333d commit 5a5673e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/thirdweb/src/wallets/in-app/native/native-connector.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,8 @@ export class InAppNativeConnector implements InAppConnector {
9292
encryptionKey,
9393
});
9494
} catch {
95-
console.warn(
96-
"Failed to migrate from sharded to enclave wallet, continuing with sharded wallet",
97-
);
95+
console.error("Failed to migrate from sharded to enclave wallet");
96+
throw new Error("Something went wrong logging into your wallet");
9897
}
9998
}
10099

packages/thirdweb/src/wallets/in-app/web/lib/web-connector.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,8 @@ export class InAppWebConnector implements InAppConnector {
110110
},
111111
});
112112
if (!result) {
113-
console.warn(
114-
"Failed to migrate from sharded to enclave wallet, continuing with sharded wallet",
115-
);
113+
console.error("Failed to migrate from sharded to enclave wallet.");
114+
throw new Error("Something went wrong logging into your wallet");
116115
}
117116
}
118117

0 commit comments

Comments
 (0)