Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luu-alex committed Sep 20, 2023
1 parent 9afadf4 commit e7fc19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web3/test/integration/external-providers/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@ import Web3 from '../../../src/index';
*/
export async function performBasicRpcCalls(provider: SupportedProviders) {
const web3 = new Web3(provider);

const accounts = await web3.eth.getAccounts();
expect(accounts).toBeDefined();
expect(accounts.length).toBeGreaterThan(0);

// get the last block number
const blockNumber0 = await web3.eth.getBlockNumber();
expect(typeof blockNumber0).toBe('bigint');
Expand All @@ -38,6 +36,8 @@ export async function performBasicRpcCalls(provider: SupportedProviders) {
to: accounts[1],
from: accounts[0],
value: '1',
type: 2,
gas: 21000
});
expect(tx.status).toBe(BigInt(1));

Expand Down

0 comments on commit e7fc19e

Please sign in to comment.