Skip to content

Commit dfcdee2

Browse files
authored
Set name for SnapController (#3052)
`SnapController`'s name was set to `string` rather than `"SnapController"`, which causes some problems with type inference in MetaMask/metamask-extension#30034.
1 parent 0c7eb2e commit dfcdee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ const name = 'SnapController';
825825
*/
826826

827827
export class SnapController extends BaseController<
828-
string,
828+
typeof name,
829829
SnapControllerState,
830830
SnapControllerMessenger
831831
> {

0 commit comments

Comments
 (0)