1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

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

This commit is contained in:
Shane 2021-03-24 15:54:24 -07:00 committed by GitHub
parent a16841f6bb
commit 0fdc8a42ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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