XYOracleNetwork/sdk-archivist-nodejs

View on GitHub
src/endpoints/block-list.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function resolve has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  public async resolve(obj: any, args: any): Promise<any> {
    const cursor = args.cursor as string | undefined
    const cursorBuffer = cursor ? bs58.decode(cursor) : undefined
    const result = await this.originBlockRepository.getOriginBlocks(
      args.limit as number,
Severity: Minor
Found in src/endpoints/block-list.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status