XYOracleNetwork/sdk-diviner-nodejs

View on GitHub
src/payment/eth/xyo-eth-payment.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function getAmountInTransaction has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public async getAmountInTransaction(
    txHash: string,
    fromEth: string,
    toEth: string
  ): Promise<number | undefined> {
Severity: Minor
Found in src/payment/eth/xyo-eth-payment.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

              return
    Severity: Major
    Found in src/payment/eth/xyo-eth-payment.ts - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status