Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make both callback and messaging system options for TokenListController & GasFeeController when listening to NetworkController #932

Merged
merged 11 commits into from
Oct 12, 2022
Prev Previous commit
Next Next commit
fix types/test
  • Loading branch information
adonesky1 committed Oct 11, 2022
commit 6b5620313d51ceff8238d6c23353dd057b354442
4 changes: 2 additions & 2 deletions src/gas/GasFeeController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ export class GasFeeController extends BaseController<
getCurrentNetworkEIP1559Compatibility: () => Promise<boolean>;
getCurrentNetworkLegacyGasAPICompatibility: () => boolean;
getCurrentAccountEIP1559Compatibility?: () => boolean;
getChainId: () => `0x${string}` | `${number}` | number;
getProvider: () => NetworkController['provider'];
getChainId?: () => `0x${string}` | `${number}` | number;
getProvider?: () => NetworkController['provider'];
onNetworkStateChange?: (listener: (state: NetworkState) => void) => void;
legacyAPIEndpoint?: string;
EIP1559APIEndpoint?: string;
Expand Down