diff --git a/src/transaction/TraceInput.tsx b/src/transaction/TraceInput.tsx index dac3b5d..667977e 100644 --- a/src/transaction/TraceInput.tsx +++ b/src/transaction/TraceInput.tsx @@ -2,7 +2,6 @@ import React, { useState } from "react"; import { Switch } from "@headlessui/react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faBomb } from "@fortawesome/free-solid-svg-icons/faBomb"; -import { faArrowRight } from "@fortawesome/free-solid-svg-icons/faArrowRight"; import TransactionAddress from "../components/TransactionAddress"; import FormattedBalance from "../components/FormattedBalance"; import FunctionSignature from "./FunctionSignature"; @@ -48,48 +47,46 @@ const TraceInput: React.FC = ({ >
{t.type} - {t.type === "SELFDESTRUCT" && ( + {t.type === "SELFDESTRUCT" ? ( + + + + ) : ( <> - - + + - - - - - )} - - - - {t.type !== "CREATE" && t.type !== "CREATE2" && ( - <> - . - - {t.value && !t.value.isZero() && ( - - {"{"}value: ETH{"}"} - - )} - - ( - {hasParams && ( - - {expanded ? ( - [-] - ) : ( - <>[...] + {t.type !== "CREATE" && t.type !== "CREATE2" && ( + <> + . + + {t.value && !t.value.isZero() && ( + + {"{"}value: ETH{"}"} + + )} + + ( + {hasParams && ( + + {expanded ? ( + [-] + ) : ( + <>[...] + )} + )} - - )} - {(!hasParams || !expanded) && <>)} - + {(!hasParams || !expanded) && <>)} + + + )} )}