Skip to content

Commit

Permalink
refactor: remove keyringTypes from test mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesposito committed Sep 25, 2023
1 parent ab82a18 commit a903e51
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions .storybook/test-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -1062,12 +1062,6 @@ const state = {
unapprovedEncryptionPublicKeyMsgCount: 0,
unapprovedTypedMessages: {},
unapprovedTypedMessagesCount: 0,
keyringTypes: [
KeyringType.imported,
KeyringType.hdKeyTree,
KeyringType.trezor,
KeyringType.ledger,
],
keyrings: [
{
type: KeyringType.hdKeyTree,
Expand Down
1 change: 0 additions & 1 deletion app/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ browser.runtime.onConnectExternal.addListener(async (...args) => {
* @property {object} unapprovedTypedMsgs - An object of messages pending approval, mapping a unique ID to the options.
* @property {number} unapprovedTypedMsgCount - The number of messages in unapprovedTypedMsgs.
* @property {number} pendingApprovalCount - The number of pending request in the approval controller.
* @property {string[]} keyringTypes - An array of unique keyring identifying strings, representing available strategies for creating accounts.
* @property {Keyring[]} keyrings - An array of keyring descriptions, summarizing the accounts that are available for use, and what keyrings they belong to.
* @property {string} selectedAddress - A lower case hex string of the currently selected address.
* @property {string} currentCurrency - A string identifying the user's preferred display currency, for use in showing conversion rates.
Expand Down
1 change: 0 additions & 1 deletion app/scripts/lib/setupSentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export const SENTRY_BACKGROUND_STATE = {
KeyringController: {
isUnlocked: true,
keyrings: false,
keyringTypes: false,
},
LoggingController: {
logs: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
},
"KeyringController": {
"isUnlocked": false,
"keyringTypes": "object",
"keyrings": "object"
},
"LoggingController": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
}
},
"cachedBalances": "object",
"keyringTypes": "object",
"keyrings": "object",
"useNonceField": false,
"usePhishDetect": true,
Expand Down
1 change: 0 additions & 1 deletion test/jest/mock-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ export const createSwapsMockStore = () => {
},
selectedAddress: '0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc',
currentLocale: 'en',
keyringTypes: [KeyringType.imported, KeyringType.hdKeyTree],
keyrings: [
{
type: KeyringType.hdKeyTree,
Expand Down
1 change: 0 additions & 1 deletion ui/pages/token-allowance/token-allowance.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const state = {
},
],
transactions: [],
keyringTypes: [],
keyrings: [
{
type: KeyringType.hdKeyTree,
Expand Down

0 comments on commit a903e51

Please sign in to comment.