1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

Create default values for metamask state for conversion. Fix config files for ui dev.

This commit is contained in:
Kevin Serrano 2016-08-04 19:09:42 -07:00
parent 92fb827923
commit ccd85d19e3
3 changed files with 9 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,8 @@
{ {
"metamask": { "metamask": {
"currentFiat": "jpy",
"conversionRate": "N/A",
"conversionDate": "N/A",
"isInitialized": true, "isInitialized": true,
"isUnlocked": true, "isUnlocked": true,
"currentDomain": "example.com", "currentDomain": "example.com",
@ -68,7 +71,7 @@
"appState": { "appState": {
"menuOpen": false, "menuOpen": false,
"currentView": { "currentView": {
"name": "accounts" "name": "config"
}, },
"accountDetail": { "accountDetail": {
"subview": "transactions", "subview": "transactions",
@ -82,4 +85,4 @@
"scrollToBottom": true "scrollToBottom": true
}, },
"identities": {} "identities": {}
} }

View File

@ -14,6 +14,9 @@ function reduceMetamask (state, action) {
rpcTarget: 'https://rawtestrpc.metamask.io/', rpcTarget: 'https://rawtestrpc.metamask.io/',
identities: {}, identities: {},
unconfTxs: {}, unconfTxs: {},
currentFiat: 'PENDING',
conversionRate: 'N/A',
conversionDate: 'N/A',
}, state.metamask) }, state.metamask)
switch (action.type) { switch (action.type) {