Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/gas-fee-controller/src/GasFeeController.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -11,8 +11,8 @@ import type {
NetworkControllerGetEthQueryAction,
NetworkControllerGetProviderConfigAction,
NetworkControllerProviderConfigChangeEvent,
NetworkController,
NetworkState,
ProviderProxy,
} from '@metamask/network-controller';
import {
fetchGasEstimates,
Expand DownExpand Up@@ -303,7 +303,7 @@ export class GasFeeController extends BaseControllerV2<
getCurrentNetworkLegacyGasAPICompatibility: () => boolean;
getCurrentAccountEIP1559Compatibility?: () => boolean;
getChainId?: () => `0x${string}` | `${number}` | number;
getProvider: () => NetworkController['provider'];

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The provider property on NetworkController went away, so we can't use that as a type here. That said, I don't think this was right anyway, it's better to export a type from NetworkController.

getProvider: () => ProviderProxy;
onNetworkStateChange?: (listener: (state: NetworkState) => void) => void;
legacyAPIEndpoint?: string;
EIP1559APIEndpoint: string;
Expand Down
1 change: 1 addition & 0 deletions packages/network-controller/package.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,6 +31,7 @@
"dependencies": {
"@metamask/base-controller": "workspace:^",
"@metamask/controller-utils": "workspace:^",
"@metamask/swappable-obj-proxy": "^2.1.0",
"async-mutex": "^0.2.6",
"babel-runtime": "^6.26.0",
"eth-json-rpc-infura": "^5.1.0",
Expand Down
Loading