|
|
@ -10,6 +10,7 @@ function reduceMetamask (state, action) { |
|
|
|
var metamaskState = extend({ |
|
|
|
var metamaskState = extend({ |
|
|
|
isInitialized: false, |
|
|
|
isInitialized: false, |
|
|
|
isUnlocked: false, |
|
|
|
isUnlocked: false, |
|
|
|
|
|
|
|
isEthConfirmed: false, |
|
|
|
currentDomain: 'example.com', |
|
|
|
currentDomain: 'example.com', |
|
|
|
rpcTarget: 'https://rawtestrpc.metamask.io/', |
|
|
|
rpcTarget: 'https://rawtestrpc.metamask.io/', |
|
|
|
identities: {}, |
|
|
|
identities: {}, |
|
|
@ -33,7 +34,7 @@ function reduceMetamask (state, action) { |
|
|
|
|
|
|
|
|
|
|
|
case actions.AGREE_TO_ETH_WARNING: |
|
|
|
case actions.AGREE_TO_ETH_WARNING: |
|
|
|
return extend(metamaskState, { |
|
|
|
return extend(metamaskState, { |
|
|
|
isEthConfirmed: true, |
|
|
|
isEthConfirmed: !metamaskState.isEthConfirmed, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
case actions.UNLOCK_METAMASK: |
|
|
|
case actions.UNLOCK_METAMASK: |
|
|
|