- {result.top_failure_reasons.length === 0 ? (
-
- No failures recorded.
-
- ) : (
-
- {result.top_failure_reasons.map(([reason, count]) => (
- -
- {reason}
-
- {count.toLocaleString()}
-
-
- ))}
-
- )}
+ {(() => {
+ const reverted = result.throughput.total_reverted;
+ const reasons: [string, number][] = [
+ ...(reverted > 0 ? [["reverted", reverted] as [string, number]] : []),
+ ...result.top_failure_reasons,
+ ];
+ if (reasons.length === 0) {
+ return (
+
+ No failures recorded.
+
+ );
+ }
+ return (
+
+ {reasons.map(([reason, count]) => (
+ -
+ {reason}
+
+ {count.toLocaleString()}
+
+
+ ))}
+
+ );
+ })()}
>
)}
diff --git a/report/src/types.ts b/report/src/types.ts
index d0d59f5..b8b1404 100644
--- a/report/src/types.ts
+++ b/report/src/types.ts
@@ -151,6 +151,7 @@ export interface ThroughputStats {
total_submitted: number;
total_confirmed: number;
total_failed: number;
+ total_reverted: number;
tps: number;
gps: number;
duration: RustDuration;