Skip to content

Commit 4b28212

Browse files
committed
refactor: fix imports, remove dead code
1 parent f2aa67e commit 4b28212

File tree

5 files changed

+3
-14
lines changed

5 files changed

+3
-14
lines changed

packages/bridge-status-controller/src/bridge-status-controller.intent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
StatusTypes,
1010
UnifiedSwapBridgeEventName,
1111
} from '@metamask/bridge-controller';
12-
import { IntentOrderStatus } from './intent-order-status';
12+
import { IntentOrderStatus } from './utils/validators';
1313

1414
import { MAX_ATTEMPTS } from './constants';
1515

packages/bridge-status-controller/src/bridge-status-controller.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ import {
4747
TraceName,
4848
} from './constants';
4949
import { IntentApiImpl } from './utils/intent-api';
50-
import type { IntentOrder } from './intent-order';
5150
import type {
5251
BridgeStatusControllerState,
5352
StartPollingForBridgeTxStatusArgsSerialized,
@@ -83,7 +82,7 @@ import {
8382
handleNonEvmTxResponse,
8483
generateActionId,
8584
} from './utils/transaction';
86-
import { IntentOrderStatus } from '../../bridge-controller/src/utils/validators';
85+
import { IntentOrder, IntentOrderStatus } from './utils/validators';
8786

8887
const metadata: StateMetadata<BridgeStatusControllerState> = {
8988
// We want to persist the bridge status state so that we can show the proper data for the Activity list

packages/bridge-status-controller/src/intent-order-status.ts

Whitespace-only changes.

packages/bridge-status-controller/src/intent-order.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

packages/bridge-status-controller/src/utils/intent-api.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// intent-api.test.ts
22
import { describe, it, expect, jest } from '@jest/globals';
33
import { IntentApiImpl, type IntentSubmissionParams } from './intent-api'; // adjust if needed
4-
import type { FetchFunction } from './types'; // adjust if needed
4+
import type { FetchFunction } from '../types'; // adjust if needed
55

66
describe('IntentApiImpl', () => {
77
const baseUrl = 'https://example.com/api';

0 commit comments

Comments
 (0)