packages/debugger/lib/txlog/selectors/index.js
File index.js
has 271 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import debugModule from "debug";
const debug = debugModule("debugger:txlog:selectors");
import { createSelectorTree, createLeaf } from "reselect-tree";
Function flattedEvents
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
flattedEvents: createLeaf(["./transactionLog"], log => {
const returnStatus = node => {
switch (node.returnKind) {
case "revert":
return false;
Function getFlattedEvents
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getFlattedEvents = (node, address, codeAddress, status) => {
switch (node.type) {
case "transaction":
return node.actions.flatMap(subNode =>
getFlattedEvents(subNode, node.origin, node.origin, status)