fix: health-checks.ts reads deployments-local.json directly, bypassing all env var overrides (#412)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a6c238570f
commit
97a4ef7cd3
1 changed files with 2 additions and 2 deletions
|
|
@ -59,8 +59,8 @@ export async function checkRpcFunctional(rpcUrl: string, kraikenAddress?: string
|
|||
}
|
||||
|
||||
// Step 2: Resolve the Kraiken address for the eth_call probe.
|
||||
// Use the address supplied by the caller; fall back to deployments-local.json.
|
||||
let resolvedKraikenAddress = kraikenAddress;
|
||||
// Priority: caller-supplied address → STACK_KRAIKEN_ADDRESS env var → deployments-local.json.
|
||||
let resolvedKraikenAddress = kraikenAddress ?? process.env.STACK_KRAIKEN_ADDRESS;
|
||||
|
||||
if (!resolvedKraikenAddress) {
|
||||
const deploymentsPath = resolve(repoRoot, 'onchain', 'deployments-local.json');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue