diff --git a/src/transaction/Details.tsx b/src/transaction/Details.tsx index 27bd9b1..5fb100a 100644 --- a/src/transaction/Details.tsx +++ b/src/transaction/Details.tsx @@ -35,7 +35,7 @@ import ExternalLink from "../components/ExternalLink"; import RelativePosition from "../components/RelativePosition"; import PercentagePosition from "../components/PercentagePosition"; import ModeTab from "../components/ModeTab"; -import DecodedParamsTable from "./DecodedParamsTable"; +import DecodedParamsTable from "./decoder/DecodedParamsTable"; import { rawInputTo4Bytes, use4BytesFull } from "../use4Bytes"; type DetailsProps = { diff --git a/src/transaction/LogEntry.tsx b/src/transaction/LogEntry.tsx index 1d4e85f..e06c558 100644 --- a/src/transaction/LogEntry.tsx +++ b/src/transaction/LogEntry.tsx @@ -6,8 +6,8 @@ import AddressHighlighter from "../components/AddressHighlighter"; import DecoratedAddressLink from "../components/DecoratedAddressLink"; import Copy from "../components/Copy"; import ModeTab from "../components/ModeTab"; -import DecodedParamsTable from "./DecodedParamsTable"; -import DecodedLogSignature from "./DecodedLogSignature"; +import DecodedParamsTable from "./decoder/DecodedParamsTable"; +import DecodedLogSignature from "./decoder/DecodedLogSignature"; import { TransactionData } from "../types"; type LogEntryProps = { diff --git a/src/transaction/DecodedLogSignature.tsx b/src/transaction/decoder/DecodedLogSignature.tsx similarity index 100% rename from src/transaction/DecodedLogSignature.tsx rename to src/transaction/decoder/DecodedLogSignature.tsx diff --git a/src/transaction/DecodedParamRow.tsx b/src/transaction/decoder/DecodedParamRow.tsx similarity index 91% rename from src/transaction/DecodedParamRow.tsx rename to src/transaction/decoder/DecodedParamRow.tsx index aec65ce..79bc6d5 100644 --- a/src/transaction/DecodedParamRow.tsx +++ b/src/transaction/decoder/DecodedParamRow.tsx @@ -1,9 +1,9 @@ import React, { ReactNode } from "react"; -import AddressHighlighter from "../components/AddressHighlighter"; -import DecoratedAddressLink from "../components/DecoratedAddressLink"; -import Copy from "../components/Copy"; import { ParamType } from "@ethersproject/abi"; -import { TransactionData } from "../types"; +import AddressHighlighter from "../../components/AddressHighlighter"; +import DecoratedAddressLink from "../../components/DecoratedAddressLink"; +import Copy from "../../components/Copy"; +import { TransactionData } from "../../types"; type DecodedParamRowProps = { prefix?: ReactNode; @@ -28,7 +28,8 @@ const DecodedParamRow: React.FC = ({ {prefix && {prefix}} {arrayElem !== undefined ? ( - {" "} + + {" "} [{arrayElem}] ) : ( diff --git a/src/transaction/DecodedParamsTable.tsx b/src/transaction/decoder/DecodedParamsTable.tsx similarity index 88% rename from src/transaction/DecodedParamsTable.tsx rename to src/transaction/decoder/DecodedParamsTable.tsx index 7cc0170..6f550f4 100644 --- a/src/transaction/DecodedParamsTable.tsx +++ b/src/transaction/decoder/DecodedParamsTable.tsx @@ -1,7 +1,7 @@ import React from "react"; import { ParamType, Result } from "@ethersproject/abi"; import DecodedParamRow from "./DecodedParamRow"; -import { TransactionData } from "../types"; +import { TransactionData } from "../../types"; type DecodedParamsTableProps = { args: Result; @@ -27,7 +27,9 @@ const DecodedParamsTable: React.FC = ({ {!hasParamNames && ( - Parameter names are not available. + + Parameter names are not available. + )}