fix: remove unused `metamask.rpcUrl` from redux state + fix tests to reflect that (#10714)

feature/default_network_editable
Shane 4 years ago committed by GitHub
parent a16841f6bb
commit 0fdc8a42ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .storybook/test-data.js
  2. 1
      ui/app/ducks/metamask/metamask.js
  3. 1
      ui/app/selectors/send-selectors-test-data.js
  4. 4
      ui/app/store/actionConstants.test.js

@ -5,7 +5,6 @@ const state = {
isInitialized: true,
isUnlocked: true,
featureFlags: { sendHexData: true },
rpcUrl: 'https://rawtestrpc.metamask.io/',
identities: {
'0xfdea65c8e26263f6d9a1b5de9555d2931a33b825': {
address: '0xfdea65c8e26263f6d9a1b5de9555d2931a33b825',

@ -7,7 +7,6 @@ export default function reduceMetamask(state = {}, action) {
isInitialized: false,
isUnlocked: false,
isAccountMenuOpen: false,
rpcUrl: 'https://rawtestrpc.metamask.io/',
identities: {},
unapprovedTxs: {},
frequentRpcList: [],

@ -5,7 +5,6 @@ const state = {
isInitialized: true,
isUnlocked: true,
featureFlags: { sendHexData: true },
rpcUrl: 'https://rawtestrpc.metamask.io/',
identities: {
'0xfdea65c8e26263f6d9a1b5de9555d2931a33b825': {
address: '0xfdea65c8e26263f6d9a1b5de9555d2931a33b825',

@ -8,8 +8,10 @@ describe('Redux actionConstants', function () {
describe('SET_RPC_TARGET', function () {
const initialState = {
metamask: {
rpcUrl: 'foo',
frequentRpcList: [],
provider: {
rpcUrl: 'bar',
},
},
appState: {
currentView: {

Loading…
Cancel
Save