From 0fdc8a42cea19948f11e6cf30a6c77517d5aad00 Mon Sep 17 00:00:00 2001 From: Shane Date: Wed, 24 Mar 2021 15:54:24 -0700 Subject: [PATCH] fix: remove unused `metamask.rpcUrl` from redux state + fix tests to reflect that (#10714) --- .storybook/test-data.js | 1 - ui/app/ducks/metamask/metamask.js | 1 - ui/app/selectors/send-selectors-test-data.js | 1 - ui/app/store/actionConstants.test.js | 4 +++- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.storybook/test-data.js b/.storybook/test-data.js index 99295cab0..ef9e15e64 100644 --- a/.storybook/test-data.js +++ b/.storybook/test-data.js @@ -5,7 +5,6 @@ const state = { isInitialized: true, isUnlocked: true, featureFlags: { sendHexData: true }, - rpcUrl: 'https://rawtestrpc.metamask.io/', identities: { '0xfdea65c8e26263f6d9a1b5de9555d2931a33b825': { address: '0xfdea65c8e26263f6d9a1b5de9555d2931a33b825', diff --git a/ui/app/ducks/metamask/metamask.js b/ui/app/ducks/metamask/metamask.js index 31c808877..7569f0ccb 100644 --- a/ui/app/ducks/metamask/metamask.js +++ b/ui/app/ducks/metamask/metamask.js @@ -7,7 +7,6 @@ export default function reduceMetamask(state = {}, action) { isInitialized: false, isUnlocked: false, isAccountMenuOpen: false, - rpcUrl: 'https://rawtestrpc.metamask.io/', identities: {}, unapprovedTxs: {}, frequentRpcList: [], diff --git a/ui/app/selectors/send-selectors-test-data.js b/ui/app/selectors/send-selectors-test-data.js index 93f7a217e..f6c077798 100644 --- a/ui/app/selectors/send-selectors-test-data.js +++ b/ui/app/selectors/send-selectors-test-data.js @@ -5,7 +5,6 @@ const state = { isInitialized: true, isUnlocked: true, featureFlags: { sendHexData: true }, - rpcUrl: 'https://rawtestrpc.metamask.io/', identities: { '0xfdea65c8e26263f6d9a1b5de9555d2931a33b825': { address: '0xfdea65c8e26263f6d9a1b5de9555d2931a33b825', diff --git a/ui/app/store/actionConstants.test.js b/ui/app/store/actionConstants.test.js index 2875b2525..5a0e5e3a2 100644 --- a/ui/app/store/actionConstants.test.js +++ b/ui/app/store/actionConstants.test.js @@ -8,8 +8,10 @@ describe('Redux actionConstants', function () { describe('SET_RPC_TARGET', function () { const initialState = { metamask: { - rpcUrl: 'foo', frequentRpcList: [], + provider: { + rpcUrl: 'bar', + }, }, appState: { currentView: {