diff --git a/packages/web3-eth-accounts/test/unit/tx/registerNewTx.test.ts b/packages/web3-eth-accounts/test/unit/tx/registerNewTx.test.ts index f694729af00..8b4da78a527 100644 --- a/packages/web3-eth-accounts/test/unit/tx/registerNewTx.test.ts +++ b/packages/web3-eth-accounts/test/unit/tx/registerNewTx.test.ts @@ -22,12 +22,10 @@ import { TxData, TxOptions } from '../../../src/tx'; describe('Register new TX', () => { it('validateCannotExceedMaxInteger()', () => { const TYPE = 20; - // @ts-ignore + // @ts-expect-error not implement all methods class SomeNewTxType extends BaseTransaction { - constructor(txData: TxData, opts: TxOptions = {}) { - super(txData, opts); - // @ts-ignore - this._type = 20; + public constructor(txData: TxData, opts: TxOptions = {}) { + super({ ...txData, type: TYPE }, opts); } public static fromTxData() { return 'new fromTxData';