trufflesuite/truffle

View on GitHub
packages/compile-common/src/shims/NewToLegacy.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function forContract has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function forContract(contract: CompiledContract): any {
  const {
    contractName,
    sourcePath,
    source,
Severity: Minor
Found in packages/compile-common/src/shims/NewToLegacy.ts - About 1 hr to fix

    Function forBytecode has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function forBytecode(bytecode: any): any {
      if (!bytecode) {
        return bytecode;
      }
      if (typeof bytecode === "string") {
    Severity: Minor
    Found in packages/compile-common/src/shims/NewToLegacy.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status