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": {
"currentFiat": "jpy",
"conversionRate": "N/A",
"conversionDate": "N/A",
"isInitialized": true,
"isUnlocked": true,
"currentDomain": "example.com",
@ -68,7 +71,7 @@
"appState": {
"menuOpen": false,
"currentView": {
"name": "accounts"
"name": "config"
},
"accountDetail": {
"subview": "transactions",

View File

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