From 29eed7b325f43b6166cdd846805609f395908cc9 Mon Sep 17 00:00:00 2001 From: Joshy Orndorff Date: Sun, 7 Jan 2024 13:17:40 +0800 Subject: [PATCH] Properly scrape seal type from pre-runtime digest --- fork-visualizer/src/app/components/LayoutFlow.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fork-visualizer/src/app/components/LayoutFlow.jsx b/fork-visualizer/src/app/components/LayoutFlow.jsx index b056dc8f..73672124 100644 --- a/fork-visualizer/src/app/components/LayoutFlow.jsx +++ b/fork-visualizer/src/app/components/LayoutFlow.jsx @@ -107,7 +107,7 @@ const LayoutFlow = () => { // This avoids a crash when you re-start the block. There is likely a more // idiomatic way to do this is js. if (header.number != 0) { - const seal_data = header.digest.logs[0].toJSON().seal[1]; + const seal_data = header.digest.logs[0].toJSON().preRuntime[1]; const seal = seal_data.slice(0, 4) group = SEAL_TO_GROUP[seal] ?? "genesis"