Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TarekkMA committed Oct 4, 2024
1 parent aa5b89d commit daae46c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/suites/dev/moonbase/test-staking/test-rewards5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ describeSuite({
{ allowFailures: false }
);

let currentHash = await context.polkadotJs().rpc.chain.getFinalizedHead();
let currentBlockNumber = (
const currentHash = await context.polkadotJs().rpc.chain.getFinalizedHead();
const currentBlockNumber = (
await context.polkadotJs().rpc.chain.getHeader(currentHash)
).number.toNumber();
let blocksToJump = BLOCKS_PER_ROUND - currentBlockNumber;
const blocksToJump = BLOCKS_PER_ROUND - currentBlockNumber;
console.log(`Jumping ${blocksToJump} blocks`);
await jumpBlocks(context, blocksToJump);

Expand Down

0 comments on commit daae46c

Please sign in to comment.