From aa2abfa6d6e40edcb67ad04acdce45969457aaf4 Mon Sep 17 00:00:00 2001 From: theMackabu Date: Sat, 25 Apr 2026 18:21:02 -0700 Subject: [PATCH] dedup frames in hash --- docs/reports/src/reports.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/reports/src/reports.ts b/docs/reports/src/reports.ts index 9f802ab..b1f793f 100644 --- a/docs/reports/src/reports.ts +++ b/docs/reports/src/reports.ts @@ -22,6 +22,10 @@ export type RawReport = { frames: ReportFrameRow[]; }; +function dedupeFrame(frame: string): string { + return frame.replace(/\b0x[0-9a-fA-F]+\b/g, '0x'); +} + async function reportTrace(report: CrashReport): Promise { const traceInput = JSON.stringify({ runtime: report.runtime, @@ -32,7 +36,7 @@ async function reportTrace(report: CrashReport): Promise { code: report.code, reason: report.reason, addr: report.addr, - frames: report.frames, + frames: report.frames.map(dedupeFrame), }); return sha256(traceInput); -- 2.51.2