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

Commit 477d992

Browse files
fix: lint issues
1 parent 1195d0b commit 477d992

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

packages/web3-eth/src/utils/prepare_transaction_for_signing.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ const getEthereumjsTxDataFromTransaction = (
4444

4545
for (const [oldField, newField] of aliases) {
4646
if (typeof txData[oldField] !== 'undefined') {
47-
// @ts-expect-error
48-
txData[newField] = txData[oldField];
47+
txData[newField] = txData[oldField]!;
4948
delete txData[oldField];
5049
}
5150
}

packages/web3-eth/test/unit/prepare_transaction_for_signing.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,7 @@ describe('prepareTransactionForSigning', () => {
366366
context,
367367
)) as TypedTransaction & { feeCurrency: string };
368368

369-
// @ts-expect-error
370-
expect(spy.mock.lastCall[0].feeCurrency).toEqual(
371-
'0x1234567890123456789012345678901234567890',
372-
);
369+
// @ts-expect-error feeCurrency is a custom field for testing here
370+
expect(spy.mock.lastCall[0].feeCurrency).toBe('0x1234567890123456789012345678901234567890');
373371
});
374372
});

0 commit comments

Comments
 (0)