Omit missing value field
This commit is contained in:
parent
e93c2953ec
commit
d27df7d271
|
@ -42,7 +42,7 @@ const TraceItem: React.FC<TraceItemProps> = ({ t, txData, last }) => {
|
|||
className={`font-bold ${
|
||||
t.type === "STATICCALL"
|
||||
? "text-red-700"
|
||||
: t.type === "DELEGATECALL"
|
||||
: t.type === "DELEGATECALL" || t.type === "CALLCODE"
|
||||
? "text-gray-400"
|
||||
: "text-blue-900"
|
||||
}`}
|
||||
|
|
|
@ -341,7 +341,10 @@ export const useTraceTransaction = (
|
|||
for (let i = 0; i < results.length; i++) {
|
||||
results[i].from = provider.formatter.address(results[i].from);
|
||||
results[i].to = provider.formatter.address(results[i].to);
|
||||
results[i].value = provider.formatter.bigNumber(results[i].value);
|
||||
results[i].value =
|
||||
results[i].value === null
|
||||
? null
|
||||
: provider.formatter.bigNumber(results[i].value);
|
||||
}
|
||||
|
||||
// Build trace tree
|
||||
|
|
Loading…
Reference in New Issue