Thanks to visit codestin.com
Credit goes to github.com

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

Commit 01ca836

Browse files
fix: unused vars
1 parent fd80328 commit 01ca836

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/web3-core/src/web3_config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
} from 'web3-types';
2626
import { ConfigHardforkMismatchError, ConfigChainMismatchError } from 'web3-errors';
2727
import { isNullish, toHex } from 'web3-utils';
28-
import { ValidationSchemaInput, Schema } from 'web3-validator';
28+
import { ValidationSchemaInput } from 'web3-validator';
2929
import { TransactionTypeParser } from './types.js';
3030
// eslint-disable-next-line import/no-cycle
3131
import { TransactionBuilder } from './web3_context.js';
@@ -523,7 +523,7 @@ export abstract class Web3Config
523523
this.config.transactionTypeParser = val;
524524
}
525525

526-
public get customTransactionSchema() {
526+
public get customTransactionSchema(): ValidationSchemaInput | undefined {
527527
return this.config.customTransactionSchema;
528528
}
529529

packages/web3-core/src/web3_context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ export class Web3Context<
145145
this._requestManager =
146146
requestManager ??
147147
new Web3RequestManager<API>(
148-
config,
149148
provider,
150149
config?.enableExperimentalFeatures?.useSubscriptionWhenCheckingBlockTimeout,
151150
requestManagerMiddleware,
151+
config,
152152
);
153153

154154
if (subscriptionManager) {

packages/web3-core/src/web3_request_manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import {
5353
} from './utils.js';
5454
import { Web3EventEmitter } from './web3_event_emitter.js';
5555
import { RequestManagerMiddleware } from './types.js';
56-
import { Web3ConfigEvent, Web3ConfigOptions } from './web3_config.js';
56+
import { Web3ConfigOptions } from './web3_config.js';
5757

5858
export enum Web3RequestManagerEvent {
5959
PROVIDER_CHANGED = 'PROVIDER_CHANGED',

0 commit comments

Comments
 (0)