Skip to content

Commit 1966bf4

Browse files
chore: Remove duplicate controller name (#3054)
For some reason the controller name was defined twice. This removes one of the instances.
1 parent dfcdee2 commit 1966bf4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/snaps-controllers/src/snaps/SnapController.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,6 @@ function truncateSnap(snap: Snap): TruncatedSnap {
815815
return truncatedSnap as TruncatedSnap;
816816
}
817817

818-
const name = 'SnapController';
819-
820818
/*
821819
* A snap is initialized in three phases:
822820
* - Add: Loads the snap from a remote source and parses it.
@@ -825,7 +823,7 @@ const name = 'SnapController';
825823
*/
826824

827825
export class SnapController extends BaseController<
828-
typeof name,
826+
typeof controllerName,
829827
SnapControllerState,
830828
SnapControllerMessenger
831829
> {
@@ -925,7 +923,7 @@ export class SnapController extends BaseController<
925923
anonymous: false,
926924
},
927925
},
928-
name,
926+
name: controllerName,
929927
state: {
930928
...defaultState,
931929
...state,

0 commit comments

Comments
 (0)