diff options
Merge branch 'master' into NewUI-flat
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r-- | ui/app/actions.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index e694152a2..279cb892b 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -244,6 +244,8 @@ var actions = { setFeatureFlag, updateFeatureFlags, UPDATE_FEATURE_FLAGS: 'UPDATE_FEATURE_FLAGS', + + retryTransaction, } module.exports = actions @@ -1119,6 +1121,19 @@ function markAccountsFound () { return callBackgroundThenUpdate(background.markAccountsFound) } +function retryTransaction (txId) { + log.debug(`background.retryTransaction`) + return (dispatch) => { + background.retryTransaction(txId, (err, newState) => { + if (err) { + return dispatch(actions.displayWarning(err.message)) + } + dispatch(actions.updateMetamaskState(newState)) + dispatch(actions.viewPendingTx(txId)) + }) + } +} + // // config // |