Skip to content

Commit

Permalink
fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Altabba committed Jun 25, 2024
1 parent 804feb3 commit b7cce7f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/unit/web3zksync-l2.as.provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ jest.mock('web3-rpc-methods');

describe('Web3ZkSyncL2 as a Provider', () => {
it('should correctly initialize and assign function properties in getPriorityOpResponse', async () => {
const web3ZkSyncL2 = new Web3ZkSyncL2();
const web3ZkSyncL2 = new Web3ZkSyncL2('https://mainnet.era.zksync.io');

// TODO: remove the commented lines after the test passes
// NOTE: this was an object of TransactionResponse in ethers
const l1Tx: Transaction = {
// hash: '0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef',
from: '0xabcdef1234567890abcdef1234567890abcdef1234',
from: '0xabcdef1234567890abcdef1234567890abcdef12',
// blockHash: '0xabcd1234567890abcdef1234567890abcdef1234567890abcdef1234567890',
// blockNumber: 123456,
to: '0xabcdef1234567890abcdef1234567890abcdef1234',
to: '0xabcdef1234567890abcdef1234567890abcdef12',
type: 2,
nonce: 42,
gasLimit: 2000000n,
Expand All @@ -41,5 +41,6 @@ describe('Web3ZkSyncL2 as a Provider', () => {
expect(typeof priorityOpResponse.wait).toBe('function');
// 'The waitFinalize function should be properly initialized'
expect(typeof priorityOpResponse.waitFinalize).toEqual('function');

});
});

0 comments on commit b7cce7f

Please sign in to comment.