Skip to content

Commit

Permalink
fix: add test getTransactionCount [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
tabaktoni committed Sep 13, 2022
1 parent 7374923 commit 342755a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions __tests__/rpcProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ describeIfRpc('RPCProvider', () => {
expect(Array.isArray(transactions)).toBe(true);
});

test('getTransactionCount', async () => {
const count = await rpcProvider.getTransactionCount('latest');
expect(typeof count).toBe('number');
});

test('getBlockHashAndNumber', async () => {
const blockHashAndNumber = await rpcProvider.getBlockHashAndNumber();
expect(blockHashAndNumber).toHaveProperty('block_hash');
Expand Down

0 comments on commit 342755a

Please sign in to comment.