Move structLogs normalization right after we fetch the trace

This commit is contained in:
Leonid Logvinov
2019-02-26 10:53:36 -08:00
parent ae8a7f6320
commit 462a61da73
4 changed files with 13 additions and 14 deletions

View File

@@ -57,7 +57,6 @@ export class ProfilerSubprovider extends TraceInfoSubprovider {
return;
}
logUtils.header(`Profiling data for ${traceInfo.txHash}`);
traceInfo.trace.structLogs = utils.normalizeStructLogs(traceInfo.trace.structLogs);
const callDataCost = costUtils.reportCallDataCost(traceInfo);
const memoryCost = costUtils.reportMemoryCost(traceInfo);
const opcodesCost = costUtils.reportOpcodesCost(traceInfo);