mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix: remove unused metamask.rpcUrl
from redux state + fix tests to reflect that (#10714)
This commit is contained in:
parent
a16841f6bb
commit
0fdc8a42ce
@ -5,7 +5,6 @@ const state = {
|
|||||||
isInitialized: true,
|
isInitialized: true,
|
||||||
isUnlocked: true,
|
isUnlocked: true,
|
||||||
featureFlags: { sendHexData: true },
|
featureFlags: { sendHexData: true },
|
||||||
rpcUrl: 'https://rawtestrpc.metamask.io/',
|
|
||||||
identities: {
|
identities: {
|
||||||
'0xfdea65c8e26263f6d9a1b5de9555d2931a33b825': {
|
'0xfdea65c8e26263f6d9a1b5de9555d2931a33b825': {
|
||||||
address: '0xfdea65c8e26263f6d9a1b5de9555d2931a33b825',
|
address: '0xfdea65c8e26263f6d9a1b5de9555d2931a33b825',
|
||||||
|
@ -7,7 +7,6 @@ export default function reduceMetamask(state = {}, action) {
|
|||||||
isInitialized: false,
|
isInitialized: false,
|
||||||
isUnlocked: false,
|
isUnlocked: false,
|
||||||
isAccountMenuOpen: false,
|
isAccountMenuOpen: false,
|
||||||
rpcUrl: 'https://rawtestrpc.metamask.io/',
|
|
||||||
identities: {},
|
identities: {},
|
||||||
unapprovedTxs: {},
|
unapprovedTxs: {},
|
||||||
frequentRpcList: [],
|
frequentRpcList: [],
|
||||||
|
@ -5,7 +5,6 @@ const state = {
|
|||||||
isInitialized: true,
|
isInitialized: true,
|
||||||
isUnlocked: true,
|
isUnlocked: true,
|
||||||
featureFlags: { sendHexData: true },
|
featureFlags: { sendHexData: true },
|
||||||
rpcUrl: 'https://rawtestrpc.metamask.io/',
|
|
||||||
identities: {
|
identities: {
|
||||||
'0xfdea65c8e26263f6d9a1b5de9555d2931a33b825': {
|
'0xfdea65c8e26263f6d9a1b5de9555d2931a33b825': {
|
||||||
address: '0xfdea65c8e26263f6d9a1b5de9555d2931a33b825',
|
address: '0xfdea65c8e26263f6d9a1b5de9555d2931a33b825',
|
||||||
|
@ -8,8 +8,10 @@ describe('Redux actionConstants', function () {
|
|||||||
describe('SET_RPC_TARGET', function () {
|
describe('SET_RPC_TARGET', function () {
|
||||||
const initialState = {
|
const initialState = {
|
||||||
metamask: {
|
metamask: {
|
||||||
rpcUrl: 'foo',
|
|
||||||
frequentRpcList: [],
|
frequentRpcList: [],
|
||||||
|
provider: {
|
||||||
|
rpcUrl: 'bar',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
appState: {
|
appState: {
|
||||||
currentView: {
|
currentView: {
|
||||||
|
Loading…
Reference in New Issue
Block a user