Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbrugneaux committed Sep 6, 2024
1 parent 7361a79 commit e0ec4be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/web3-core/src/web3_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { ExtensionObject, RequestManagerMiddleware } from './types.js';
import { Web3BatchRequest } from './web3_batch_request.js';
// eslint-disable-next-line import/no-cycle
import { Web3Config, Web3ConfigEvent, Web3ConfigOptions } from './web3_config.js';
// eslint-disable-next-line import/no-cycle
import { Web3RequestManager } from './web3_request_manager.js';
import { Web3SubscriptionConstructor } from './web3_subscriptions.js';
import { Web3SubscriptionManager } from './web3_subscription_manager.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-core/src/web3_request_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import {
} from './utils.js';
import { Web3EventEmitter } from './web3_event_emitter.js';
import { RequestManagerMiddleware } from './types.js';
import { Web3ConfigOptions } from './web3_config.js';
import { type Web3ConfigOptions } from './web3_config.js';

export enum Web3RequestManagerEvent {
PROVIDER_CHANGED = 'PROVIDER_CHANGED',
Expand Down
2 changes: 2 additions & 0 deletions packages/web3-eth/test/unit/format_transaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ describe('formatTransaction', () => {
});

it('Accepts a custom schema', () => {
// @ts-expect-error feeCurrency does not exist on base tx type
expect(formatTransaction(customFieldTransaction).feeCurrency).toBeUndefined();
expect(
formatTransaction(customFieldTransaction, undefined, {
Expand All @@ -130,6 +131,7 @@ describe('formatTransaction', () => {
feeCurrency: 'address',
},
},
// @ts-expect-error feeCurrency does not exist on base tx type
}).feeCurrency,
).toBeDefined();
});
Expand Down

0 comments on commit e0ec4be

Please sign in to comment.