AugurProject/augur-ui

View on GitHub
src/modules/app/actions/sync-blockchain.js

Summary

Maintainability
A
1 hr
Test Coverage

Function syncBlockchain has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const syncBlockchain = () => (dispatch, getState) => {
  const { gasPriceInfo } = getState();
  const blockNumber = parseInt(augur.rpc.getCurrentBlock().number, 16);
  augur.api.Controller.getTimestamp((err, augurTimestamp) => {
    if (err) console.error(err);
Severity: Minor
Found in src/modules/app/actions/sync-blockchain.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status