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