Skip to content

Commit

Permalink
tiny modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad-Altabba committed Nov 21, 2024
1 parent 0cbc23d commit 4c55d98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions packages/web3-eth-accounts/src/tx/transactionFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ const extraTxTypes: Map<Numbers, typeof BaseTransaction<unknown>> = 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)));
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth-contract/src/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ export class Contract<Abi extends ContractAbi>
param2?: Omit<Filter, 'address'> | 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
Expand Down

0 comments on commit 4c55d98

Please sign in to comment.