Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/commands/scan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,16 @@ export async function runScan(contractId: string): Promise<number> {
log.info("key ok", fields);
} else if (reading.status === "low") {
log.warn("key low", fields);
} else {
} else if (reading.status === "archived") {
log.warn("key archived", {
...fields,
note: "the next extend_all restores this automatically under Protocol 23",
});
} else {
// Exhaustive: a new TtlStatus variant must fail the build here rather
// than be silently reported as archived. Unreachable today.
const unhandled: never = reading.status;
throw new Error(`unhandled TtlStatus ${unhandled} for key ${reading.description}`);
}
}

Expand Down
Loading