Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
feat: remove KeyringSnapControllerClient to fix dependency problems (
Browse files Browse the repository at this point in the history
…#241)

The `KeyringSnapControllerClient` class depends on the `SnapController`
which adds a lot of dependencies to the `keyring-api`, causing circular
dependency problems in other packages that depend on the `keyring-api`.

The `KeyringSnapControllerClient` is currently used only by the
`eth-snap-keyring` package, which is internal to MetaMask, so this
change shouldn't break any other dependent code.
  • Loading branch information
danroc authored Jan 19, 2024
1 parent 6c022b9 commit 660e25f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1,094 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
},
"dependencies": {
"@metamask/providers": "^14.0.1",
"@metamask/snaps-controllers": "^4.0.0",
"@metamask/snaps-sdk": "^1.3.2",
"@metamask/snaps-utils": "^5.1.2",
"@metamask/utils": "^8.1.0",
"@types/uuid": "^9.0.1",
"superstruct": "^1.0.3",
Expand Down
82 changes: 0 additions & 82 deletions src/KeyringSnapControllerClient.test.ts

This file was deleted.

116 changes: 0 additions & 116 deletions src/KeyringSnapControllerClient.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export * from './eth';
export * from './events';
export * from './internal';
export * from './KeyringClient';
export * from './KeyringSnapControllerClient';
export * from './KeyringSnapRpcClient';
export * from './rpc-handler';
export * from './snap-utils';
Expand Down
Loading

0 comments on commit 660e25f

Please sign in to comment.