Skip to content

Commit

Permalink
Fix activeEra decomposition
Browse files Browse the repository at this point in the history
  • Loading branch information
penumbra23 committed May 6, 2024
1 parent 0cf6e73 commit 649f113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/chaindata/queries/Era.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const findEraBlockHash = async (
logger.info(`Test era is empty: ${JSON.stringify(testEra)}`);
return ["", "Test era is none"];
}
const testIndex = testEra.unwrap().toNumber();
const testIndex = testEra.unwrap().index.toNumber();
if (era == testIndex) {
return [blockHash.toString(), null];
}
Expand Down

0 comments on commit 649f113

Please sign in to comment.