diff options
Diffstat (limited to 'ui/app/reducers/metamask.js')
-rw-r--r-- | ui/app/reducers/metamask.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ui/app/reducers/metamask.js b/ui/app/reducers/metamask.js index a0884b834..cc24a6729 100644 --- a/ui/app/reducers/metamask.js +++ b/ui/app/reducers/metamask.js @@ -20,6 +20,10 @@ function reduceMetamask (state, action) { selectedTokenAddress: null, tokenExchangeRates: {}, tokens: [], + send: { + gasLimit: null, + gasPrice: null, + }, }, state.metamask) switch (action.type) { @@ -152,6 +156,22 @@ function reduceMetamask (state, action) { tokens: action.newTokens, }) + case actions.UPDATE_GAS_LIMIT: + return extend(metamaskState, { + send: { + ...metamaskState.send, + gasLimit: action.value, + }, + }) + + case actions.UPDATE_GAS_PRICE: + return extend(metamaskState, { + send: { + ...metamaskState.send, + gasPrice: action.value, + }, + }) + default: return metamaskState |