trufflesuite/truffle

View on GitHub
packages/contract/lib/promievent.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function PromiEvent has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function PromiEvent(justPromise, bugger = undefined, isDeploy = false) {
  const { resolve, reject, eventEmitter } = new Web3PromiEvent(justPromise);

  const originalStackTrace = new Error().stack;

Severity: Major
Found in packages/contract/lib/promievent.js - About 2 hrs to fix

    Function rejectHijacker has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function rejectHijacker(e) {
        debug("hijacking!");
        debug("hash: %s", this.txHash);
        let getSolidityStackTrace;
        if (bugger && this.txHash) {
    Severity: Minor
    Found in packages/contract/lib/promievent.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status