livepeer/livepeerjs

View on GitHub
packages/subgraph/src/mappings/pollCreator.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

export function pollCreated(event: PollCreated): void {
  let round = createOrLoadRound(event.block.number);

  let poll = new Poll(event.params.poll.toHex());
  poll.tally = event.params.poll.toHex();
Severity: Minor
Found in packages/subgraph/src/mappings/pollCreator.ts - About 1 hr to fix

There are no issues that match your filters.

Category
Status