diff --git a/e2e/scaffolding/helpers.ts b/e2e/scaffolding/helpers.ts index b3dfec831a..a87a3e6be0 100644 --- a/e2e/scaffolding/helpers.ts +++ b/e2e/scaffolding/helpers.ts @@ -496,7 +496,7 @@ export async function setEpochLength(keys: KeyringPair, epochLength: number): Pr export async function getNextRewardEraBlock(): Promise { const eraInfo = await ExtrinsicHelper.apiPromise.query.capacity.currentEraInfo(); - const actualEraLength: number = 50; + const actualEraLength: number = ExtrinsicHelper.api.consts.capacity.eraLength.toNumber(); return actualEraLength + eraInfo.startedAt.toNumber() + 1; }