Problem
anchorRegistryFlag() and setCoverageStatus() (src/safetynet/oracle.ts) log a warn and return 'dev-noop-tx' when REGISTRY_ANCHOR_CONTRACT_ID / INSURANCE_POOL_CONTRACT_ID are unset — intentional for local dev. But nothing distinguishes "intentionally unset in dev" from "accidentally unset in production," so a misconfigured prod deploy would confirm registry flags and process insurance coverage changes that never actually anchor on-chain, with only a log line as evidence.
Location
src/safetynet/oracle.ts (anchorRegistryFlag, setCoverageStatus)
Suggested fix
Fail fast (throw, or refuse to boot) when config.isProduction is true and the relevant contract ID is unset, instead of silently returning a no-op tx hash.
Problem
anchorRegistryFlag()andsetCoverageStatus()(src/safetynet/oracle.ts) log awarnand return'dev-noop-tx'whenREGISTRY_ANCHOR_CONTRACT_ID/INSURANCE_POOL_CONTRACT_IDare unset — intentional for local dev. But nothing distinguishes "intentionally unset in dev" from "accidentally unset in production," so a misconfigured prod deploy would confirm registry flags and process insurance coverage changes that never actually anchor on-chain, with only a log line as evidence.Location
src/safetynet/oracle.ts(anchorRegistryFlag,setCoverageStatus)Suggested fix
Fail fast (throw, or refuse to boot) when
config.isProductionis true and the relevant contract ID is unset, instead of silently returning a no-op tx hash.