Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 1f8d416

Browse files
test: fix web3-eth-personal tests
1 parent 11d8de7 commit 1f8d416

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/web3-eth-personal/test/unit/eth_personal.test.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,11 @@ describe('Personal', () => {
185185
await personal.sendTransaction(tx, 'password');
186186

187187
expect(eth.formatTransaction).toHaveBeenCalledTimes(1);
188-
expect(eth.formatTransaction).toHaveBeenCalledWith(tx, ETH_DATA_FORMAT);
188+
expect(eth.formatTransaction).toHaveBeenCalledWith(
189+
tx,
190+
ETH_DATA_FORMAT,
191+
expect.anything(),
192+
);
189193
});
190194
});
191195

@@ -215,7 +219,11 @@ describe('Personal', () => {
215219
await personal.signTransaction(tx, 'password');
216220

217221
expect(eth.formatTransaction).toHaveBeenCalledTimes(1);
218-
expect(eth.formatTransaction).toHaveBeenCalledWith(tx, ETH_DATA_FORMAT);
222+
expect(eth.formatTransaction).toHaveBeenCalledWith(
223+
tx,
224+
ETH_DATA_FORMAT,
225+
expect.anything(),
226+
);
219227
});
220228
});
221229

0 commit comments

Comments
 (0)