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
key={i}
t={t}
txData={txData}
last={i === a.length - 1}
fourBytesMap={sigMap}
resolvedAddresses={mergedResolvedAddresses}

View File

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

View File

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