refactor: network-list-menu
component
#58906
Annotations
7 errors and 10 warnings
Lint:
app/scripts/controller-init/confirmations/transaction-controller-init.test.ts#L42
Type 'TransactionControllerMessenger' does not satisfy the constraint 'BaseRestrictedControllerMessenger'.
|
Lint:
app/scripts/controller-init/confirmations/transaction-controller-init.ts#L51
Type 'TransactionControllerMessenger' does not satisfy the constraint 'BaseRestrictedControllerMessenger'.
|
Lint:
app/scripts/controller-init/confirmations/transaction-controller-init.ts#L191
Type 'TransactionControllerMessenger' does not satisfy the constraint 'BaseRestrictedControllerMessenger'.
|
Lint:
app/scripts/controller-init/messengers/transaction-controller-messenger.ts#L59
Type 'RestrictedMessenger<"TransactionController", AccountsControllerGetSelectedAccountAction | AddApprovalRequest | NetworkControllerGetNetworkClientByIdAction | NetworkControllerFindNetworkClientIdByChainIdAction, NetworkControllerStateChangeEvent | ... 9 more ... | TransactionControllerUnapprovedTransactionAddedEvent, ...' is not assignable to type 'TransactionControllerMessenger'.
|
Lint:
shared/modules/network.utils.test.ts#L199
Argument of type '{ "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": { chainId: SolScope; name: string; nativeCurrency: string; isEvm: boolean; }; 'eip155:1': { chainId: string; name: string; nativeCurrency: string; blockExplorerUrls: string[]; defaultBlockExplorerUrlIndex: number; isEvm: boolean; }; 'eip155:11155111': { ...; }; "bip122:00...' is not assignable to parameter of type 'Record<string, MultichainNetworkConfiguration>'.
|
Lint:
ui/components/multichain/network-list-menu/network-list-menu.tsx#L167
Argument of type 'string' is not assignable to parameter of type '`${string}:${string}`'.
|
Lint
Process completed with exit code 2.
|
Lint:
app/scripts/controllers/swaps/swaps.test.ts#L1265
Some tests seem to be commented
|
Lint:
app/scripts/controllers/swaps/swaps.test.ts#L1286
Some tests seem to be commented
|
Lint:
app/scripts/controllers/swaps/swaps.test.ts#L1306
Some tests seem to be commented
|
Lint:
app/scripts/controllers/swaps/swaps.test.ts#L1390
Some tests seem to be commented
|
Lint:
app/scripts/controllers/swaps/swaps.test.ts#L1406
Some tests seem to be commented
|
Lint:
app/scripts/controllers/swaps/swaps.test.ts#L1429
Some tests seem to be commented
|
Lint:
test/e2e/flask/solana/common-solana.ts#L91
'#fb9f18' Hex color values are not allowed. Consider using design tokens instead. For support reach out to the design system team #metamask-design-system on Slack
|
Lint:
ui/components/app/alert-system/alert-modal/alert-modal.tsx#L209
React Hook "useI18nContext" is called conditionally. React Hooks must be called in the exact same order in every component render. Did you accidentally call a React Hook after an early return?
|
Lint:
ui/components/app/assets/asset-list/asset-list-control-bar/asset-list-control-bar.tsx#L83
React Hook useMemo has an unnecessary dependency: 'TEST_CHAINS'. Either exclude it or remove the dependency array. Outer scope values like 'TEST_CHAINS' aren't valid dependencies because mutating them doesn't re-render the component
|
Lint:
ui/components/app/assets/asset-list/asset-list-control-bar/asset-list-control-bar.tsx#L109
React Hook useEffect has missing dependencies: 'allOpts', 'currentNetwork.chainId', 'dispatch', and 'tokenNetworkFilter'. Either include them or remove the dependency array
|
Loading