From 4c55d9851e50c580cbde749f253befdca68377d8 Mon Sep 17 00:00:00 2001 From: hassanibrahemcon3x <24407834+Muhammad-Altabba@users.noreply.github.com> Date: Thu, 21 Nov 2024 07:54:47 +0100 Subject: [PATCH] tiny modifications --- packages/web3-eth-accounts/src/tx/transactionFactory.ts | 6 ++---- packages/web3-eth-contract/src/contract.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/web3-eth-accounts/src/tx/transactionFactory.ts b/packages/web3-eth-accounts/src/tx/transactionFactory.ts index 0e70dbf7944..0e0c14b6969 100644 --- a/packages/web3-eth-accounts/src/tx/transactionFactory.ts +++ b/packages/web3-eth-accounts/src/tx/transactionFactory.ts @@ -36,10 +36,8 @@ const extraTxTypes: Map> = new Map(); // eslint-disable-next-line @typescript-eslint/no-extraneous-class export class TransactionFactory { // It is not possible to instantiate a TransactionFactory object. - // eslint-disable-next-line no-useless-constructor - private constructor() { - // not possible to instantiate - } + // eslint-disable-next-line no-useless-constructor, no-empty-function + private constructor() {} public static typeToInt(txType: Numbers) { return Number(uint8ArrayToBigInt(toUint8Array(txType))); diff --git a/packages/web3-eth-contract/src/contract.ts b/packages/web3-eth-contract/src/contract.ts index 2acdd7311dc..bc0cde9022a 100644 --- a/packages/web3-eth-contract/src/contract.ts +++ b/packages/web3-eth-contract/src/contract.ts @@ -933,7 +933,7 @@ export class Contract param2?: Omit | ReturnFormat, param3?: ReturnFormat, ): Promise<(string | EventLog)[]> { - const eventName = typeof param1 === 'string' ? param1 : ALL_EVENTS; + const eventName: string = typeof param1 === 'string' ? param1 : ALL_EVENTS; const options = // eslint-disable-next-line no-nested-ternary