Skip to content

Commit

Permalink
Update test/RpcCompatibility.js
Browse files Browse the repository at this point in the history
Co-authored-by: Milap Sheth <[email protected]>
  • Loading branch information
sdaveas and milapsheth authored Aug 23, 2024
1 parent e7826e2 commit ece03d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/RpcCompatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ describe('RpcCompatibility', () => {
expect(timeDifference).to.be.lessThanOrEqual(maxDifference);
}

async function validParentHashes(tag) {
async function validParentHashes(blockTag) {
const withTransaction = false;
const block = await provider.send('eth_getBlockByNumber', ['latest', withTransaction]);
const block = await provider.send('eth_getBlockByNumber', [blockTag, withTransaction]);
const parentBlock = await provider.send('eth_getBlockByHash', [block.parentHash, withTransaction]);

expect(parentBlock.hash).to.equal(block.parentHash);
Expand Down

0 comments on commit ece03d5

Please sign in to comment.