From 637ff5c9d859dd111585c8005131acac4562a6ff Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Mon, 22 Nov 2021 14:16:33 -0300 Subject: [PATCH] Fix selfdestruct display --- src/transaction/TraceInput.tsx | 77 ++++++++++++++++------------------ 1 file changed, 37 insertions(+), 40 deletions(-) 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) && <>)} + + + )} )}