diff --git a/constraints.pro b/constraints.pro index a9d9031308d..f79e0a5e4c7 100644 --- a/constraints.pro +++ b/constraints.pro @@ -298,14 +298,15 @@ gen_enforced_dependency(WorkspaceCwd, DependencyIdent, null, DependencyType) :- workspace_has_dependency(WorkspaceCwd, DependencyIdent, DependencyRange, DependencyType), DependencyType == 'devDependencies'. -% If a controller dependency (other than `base-controller` and -% `eth-keyring-controller`) is listed under "dependencies", it should also be +% If a controller dependency (other than `base-controller`, `eth-keyring-controller` and +% `polling-controller`) is listed under "dependencies", it should also be % listed under "peerDependencies". Each controller is a singleton, so we need % to ensure the versions used match expectations. gen_enforced_dependency(WorkspaceCwd, DependencyIdent, DependencyRange, 'peerDependencies') :- workspace_has_dependency(WorkspaceCwd, DependencyIdent, DependencyRange, 'dependencies'), DependencyIdent \= '@metamask/base-controller', DependencyIdent \= '@metamask/eth-keyring-controller', + DependencyIdent \= '@metamask/polling-controller', is_controller(DependencyIdent). % All packages must specify a minimum Node version of 16. diff --git a/packages/gas-fee-controller/package.json b/packages/gas-fee-controller/package.json index a32bbce01b3..10f08f72df6 100644 --- a/packages/gas-fee-controller/package.json +++ b/packages/gas-fee-controller/package.json @@ -56,8 +56,7 @@ "typescript": "~4.8.4" }, "peerDependencies": { - "@metamask/network-controller": "^13.0.1", - "@metamask/polling-controller": "^0.0.0" + "@metamask/network-controller": "^13.0.1" }, "engines": { "node": ">=16.0.0"