Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to fetch #869

Closed
rocky3xr opened this issue Dec 31, 2018 · 0 comments
Closed

Failed to fetch #869

rocky3xr opened this issue Dec 31, 2018 · 0 comments

Comments

@rocky3xr
Copy link

TypeError: Failed to fetch 
 While processing action: 
 function (dispatch, getState, api) {
    var chain = currentChain(getState());
    data.name = name;
    data.description = description;
    return api.emerald.importAccount(data, chain).then(function (result) {
      dispatch({
        type: _actionTypes2.default.IMPORT_WALLET,
        accountId: result
      });
      if (_emeraldJs.Address.isValid(result)) {
        dispatch({
          name: name,
          description: description,
          type: _actionTypes2.default.ADD_ACCOUNT,
          accountId: result
        });
        dispatch(_network2.default.actions.loadAddressesTransactions((0, _immutable.fromJS)([result])));
        dispatch(loadAccountBalance(result));
        return result;
      }
      throw new Error(result);
    });
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants