function * recoverSeedSaga (action) {
  try {
    yield put(actions.seedRecoveryStarted())
    yield siadCall({
      url: '/wallet/sweep/seed',
      method: 'POST',
      timeout: 2e8,
      qs: {
        seed: action.seed
      }
    })
    yield put(actions.seedRecoveryFinished())
    yield new Promise(resolve => setTimeout(resolve, 1000))
    yield put(actions.hideSeedRecoveryDialog())
  } catch (e) {
    yield put(actions.seedRecoveryFinished())
    yield put(actions.hideSeedRecoveryDialog())
    sendError(e)
  }
}
// call /wallet/sweep/seed to recover money from a seed
call /wallet/sweep/seed to recover money from a seed
call / wallet / sweep / seed to recover money from a seed
function * recoverSeedSaga (action) {
  try {
    yield put(actions.seedRecoveryStarted())
    yield siadCall({
      url: '/wallet/sweep/seed',
      method: 'POST',
      timeout: 2e8,
      qs: {
        seed: action.seed
      }
    })
    yield put(actions.seedRecoveryFinished())
    yield new Promise(resolve => setTimeout(resolve, 1000))
    yield put(actions.hideSeedRecoveryDialog())
  } catch (e) {
    yield put(actions.seedRecoveryFinished())
    yield put(actions.hideSeedRecoveryDialog())
    sendError(e)
  }
}
function * recoverSeedSaga ( action ) { try { yield put ( actions . seedRecoveryStarted ( ) ) yield siadCall ( { url : '/wallet/sweep/seed' , method : 'POST' , timeout : 2e8 , qs : { seed : action . seed } } ) yield put ( actions . seedRecoveryFinished ( ) ) yield new Promise ( resolve => setTimeout ( resolve , 1000 ) ) yield put ( actions . hideSeedRecoveryDialog ( ) ) } catch ( e ) { yield put ( actions . seedRecoveryFinished ( ) ) yield put ( actions . hideSeedRecoveryDialog ( ) ) sendError ( e ) } }
call /wallet/sweep/seed to recover money from a seed
call / wallet / sweep / seed to recover money from a seed