Skip to content

Commit db98dc5

Browse files
committed
fix: remove duplicated code and remove unused mint route
1 parent 79d2c8e commit db98dc5

File tree

2 files changed

+4
-49
lines changed

2 files changed

+4
-49
lines changed

packages/auth-services/src/_setup/initSystemContext.ts

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -58,32 +58,11 @@ export async function initSystemContext({
5858
'→',
5959
effRpc
6060
);
61-
} catch {}
62-
63-
const overrideRpc = rpcUrl || env.LIT_TXSENDER_RPC_URL;
64-
65-
// Apply runtime override if rpcUrl provided
66-
const effectiveModule =
67-
overrideRpc && typeof networkModule.withOverrides === 'function'
68-
? networkModule.withOverrides({ rpcUrl: overrideRpc })
69-
: networkModule;
70-
71-
try {
72-
const baseRpc =
73-
typeof networkModule.getRpcUrl === 'function'
74-
? networkModule.getRpcUrl()
75-
: 'n/a';
76-
const effRpc =
77-
typeof effectiveModule.getRpcUrl === 'function'
78-
? effectiveModule.getRpcUrl()
79-
: 'n/a';
80-
console.log(
81-
'[initSystemContext] RPC (base → effective):',
82-
baseRpc,
83-
'→',
84-
effRpc
61+
} catch {
62+
throw new Error(
63+
`Failed to determine RPC URL from network module ${networkModule}`
8564
);
86-
} catch {}
65+
}
8766

8867
const litClient = await createLitClient({
8968
network: effectiveModule,

packages/auth-services/src/auth-server/src/routes/pkp/mint.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)