Remove unused parameter

This commit is contained in:
Willian Mitsuda 2021-11-08 08:20:16 -03:00
parent eb22a227f1
commit a03b7d21f6
3 changed files with 1 additions and 12 deletions

View File

@ -47,7 +47,6 @@ const Trace: React.FC<TraceProps> = ({ txData, resolvedAddresses }) => {
<TraceItem <TraceItem
key={i} key={i}
t={t} t={t}
txData={txData}
last={i === a.length - 1} last={i === a.length - 1}
fourBytesMap={sigMap} fourBytesMap={sigMap}
resolvedAddresses={mergedResolvedAddresses} resolvedAddresses={mergedResolvedAddresses}

View File

@ -5,7 +5,6 @@ import FormattedBalance from "../components/FormattedBalance";
import FunctionSignature from "./FunctionSignature"; import FunctionSignature from "./FunctionSignature";
import DecodedParamsTable from "./decoder/DecodedParamsTable"; import DecodedParamsTable from "./decoder/DecodedParamsTable";
import { TraceEntry } from "../useErigonHooks"; import { TraceEntry } from "../useErigonHooks";
import { TransactionData } from "../types";
import { ResolvedAddresses } from "../api/address-resolver"; import { ResolvedAddresses } from "../api/address-resolver";
import { import {
extract4Bytes, extract4Bytes,
@ -15,14 +14,12 @@ import {
type TraceInputProps = { type TraceInputProps = {
t: TraceEntry; t: TraceEntry;
txData: TransactionData;
fourBytesMap: Record<string, FourBytesEntry | null | undefined>; fourBytesMap: Record<string, FourBytesEntry | null | undefined>;
resolvedAddresses: ResolvedAddresses | undefined; resolvedAddresses: ResolvedAddresses | undefined;
}; };
const TraceInput: React.FC<TraceInputProps> = ({ const TraceInput: React.FC<TraceInputProps> = ({
t, t,
txData,
fourBytesMap, fourBytesMap,
resolvedAddresses, resolvedAddresses,
}) => { }) => {

View File

@ -3,7 +3,6 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faPlusSquare } from "@fortawesome/free-regular-svg-icons/faPlusSquare"; import { faPlusSquare } from "@fortawesome/free-regular-svg-icons/faPlusSquare";
import { faMinusSquare } from "@fortawesome/free-regular-svg-icons/faMinusSquare"; import { faMinusSquare } from "@fortawesome/free-regular-svg-icons/faMinusSquare";
import { Switch } from "@headlessui/react"; import { Switch } from "@headlessui/react";
import { TransactionData } from "../types";
import { FourBytesEntry } from "../use4Bytes"; import { FourBytesEntry } from "../use4Bytes";
import { TraceGroup } from "../useErigonHooks"; import { TraceGroup } from "../useErigonHooks";
import { ResolvedAddresses } from "../api/address-resolver"; import { ResolvedAddresses } from "../api/address-resolver";
@ -11,7 +10,6 @@ import TraceInput from "./TraceInput";
type TraceItemProps = { type TraceItemProps = {
t: TraceGroup; t: TraceGroup;
txData: TransactionData;
last: boolean; last: boolean;
fourBytesMap: Record<string, FourBytesEntry | null | undefined>; fourBytesMap: Record<string, FourBytesEntry | null | undefined>;
resolvedAddresses: ResolvedAddresses | undefined; resolvedAddresses: ResolvedAddresses | undefined;
@ -19,7 +17,6 @@ type TraceItemProps = {
const TraceItem: React.FC<TraceItemProps> = ({ const TraceItem: React.FC<TraceItemProps> = ({
t, t,
txData,
last, last,
fourBytesMap, fourBytesMap,
resolvedAddresses, resolvedAddresses,
@ -47,7 +44,6 @@ const TraceItem: React.FC<TraceItemProps> = ({
)} )}
<TraceInput <TraceInput
t={t} t={t}
txData={txData}
fourBytesMap={fourBytesMap} fourBytesMap={fourBytesMap}
resolvedAddresses={resolvedAddresses} resolvedAddresses={resolvedAddresses}
/> />
@ -60,7 +56,6 @@ const TraceItem: React.FC<TraceItemProps> = ({
> >
<TraceChildren <TraceChildren
c={t.children} c={t.children}
txData={txData}
fourBytesMap={fourBytesMap} fourBytesMap={fourBytesMap}
resolvedAddresses={resolvedAddresses} resolvedAddresses={resolvedAddresses}
/> />
@ -72,20 +67,18 @@ const TraceItem: React.FC<TraceItemProps> = ({
type TraceChildrenProps = { type TraceChildrenProps = {
c: TraceGroup[]; c: TraceGroup[];
txData: TransactionData;
fourBytesMap: Record<string, FourBytesEntry | null | undefined>; fourBytesMap: Record<string, FourBytesEntry | null | undefined>;
resolvedAddresses: ResolvedAddresses | undefined; resolvedAddresses: ResolvedAddresses | undefined;
}; };
const TraceChildren: React.FC<TraceChildrenProps> = React.memo( const TraceChildren: React.FC<TraceChildrenProps> = React.memo(
({ c, txData, fourBytesMap, resolvedAddresses }) => { ({ c, fourBytesMap, resolvedAddresses }) => {
return ( return (
<> <>
{c.map((tc, i, a) => ( {c.map((tc, i, a) => (
<TraceItem <TraceItem
key={i} key={i}
t={tc} t={tc}
txData={txData}
last={i === a.length - 1} last={i === a.length - 1}
fourBytesMap={fourBytesMap} fourBytesMap={fourBytesMap}
resolvedAddresses={resolvedAddresses} resolvedAddresses={resolvedAddresses}