Skip to content

Commit 8321a4c

Browse files
committed
fix: undo breaking tests
working on getting into passing ci
1 parent f3a6d04 commit 8321a4c

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

packages/auth-server/composables/useIsSsoAccount.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,20 @@ export function useIsSsoAccount() {
2020
functionName: "supportsInterface",
2121
args: [runtimeConfig.public.ssoAccountInterfaceId as Address],
2222
});
23-
;
24-
} catch {
23+
} catch (err: unknown) {
24+
// Handle NoFallbackHandler error (0x48c9ceda) - ModularSmartAccount doesn't implement supportsInterface yet
25+
// WORKAROUND: In our dev environment, all accounts deployed via auth-server-api are ERC-4337 ModularSmartAccounts
26+
// that throw this error. We treat these as SSO accounts.
27+
// Check both the error message and the full error string representation
28+
const errorString = err.toString?.() || String(err);
29+
const errorMessage = (err as Error).message || "";
30+
31+
if (errorMessage.includes("0x48c9ceda") || errorMessage.includes("NoFallbackHandler")
32+
|| errorString.includes("0x48c9ceda") || errorString.includes("NoFallbackHandler")) {
33+
return true;
34+
}
35+
36+
// For other errors, assume not an SSO account
2537
return false;
2638
}
2739
});

packages/auth-server/pages/recovery/guardian/(actions)/confirm-recovery.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ const recoveryParams = computedAsync(async () => RecoveryParamsSchema.parseAsync
173173
174174
const recoveryCompleted = computedAsync(async () => {
175175
// Force re-evaluation when trigger changes
176+
const _triggerValue = recoveryCheckTrigger.value;
177+
176178
if (!recoveryParams.value?.accountAddress || !recoveryParams.value?.credentialId || !recoveryParams.value?.credentialPublicKey) {
177179
return false;
178180
}

0 commit comments

Comments
 (0)