Dont try to parse method selector for create/create2 traces

This commit is contained in:
Willian Mitsuda 2021-11-19 15:39:53 -03:00
parent 26600afdb6
commit 8bfe34850d
1 changed files with 6 additions and 2 deletions

View File

@ -51,8 +51,12 @@ const TraceInput: React.FC<TraceInputProps> = ({
resolvedAddresses={resolvedAddresses} resolvedAddresses={resolvedAddresses}
/> />
</span> </span>
{t.type !== "CREATE" && t.type !== "CREATE2" && (
<>
<span>.</span> <span>.</span>
<FunctionSignature callType={t.type} sig={sigText} /> <FunctionSignature callType={t.type} sig={sigText} />
</>
)}
{t.value && !t.value.isZero() && ( {t.value && !t.value.isZero() && (
<span className="text-red-700 whitespace-nowrap"> <span className="text-red-700 whitespace-nowrap">
{"{"}value: <FormattedBalance value={t.value} /> ETH{"}"} {"{"}value: <FormattedBalance value={t.value} /> ETH{"}"}