Skip to content

Commit

Permalink
Properly scrape seal type from pre-runtime digest
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshOrndorff committed Jan 7, 2024
1 parent 981642d commit 29eed7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fork-visualizer/src/app/components/LayoutFlow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 29eed7b

Please sign in to comment.