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}
/>
</span>
<span>.</span>
<FunctionSignature callType={t.type} sig={sigText} />
{t.type !== "CREATE" && t.type !== "CREATE2" && (
<>
<span>.</span>
<FunctionSignature callType={t.type} sig={sigText} />
</>
)}
{t.value && !t.value.isZero() && (
<span className="text-red-700 whitespace-nowrap">
{"{"}value: <FormattedBalance value={t.value} /> ETH{"}"}