Skip to content

Commit

Permalink
<fix>(executive): fix log entries bug in contract call contract. (FIS…
Browse files Browse the repository at this point in the history
  • Loading branch information
kyonRay authored Oct 28, 2022
1 parent fb89117 commit f53d2df
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions bcos-executor/src/executive/TransactionExecutive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,14 +562,6 @@ CallParameters::UniquePtr TransactionExecutive::go(
auto ret = vm.exec(hostContext, mode, &evmcMessage, code.data(), code.size());

auto callResults = hostContext.takeCallParameters();
// clear unnecessary logs
if (callResults->origin != callResults->senderAddress)
{
EXECUTIVE_LOG(TRACE)
<< "clear logEntries"
<< LOG_KV("beforeClearLogSize", callResults->logEntries.size());
callResults->logEntries.clear();
}
callResults = parseEVMCResult(std::move(callResults), ret);

if (callResults->status != (int32_t)TransactionStatus::None)
Expand Down Expand Up @@ -706,14 +698,6 @@ CallParameters::UniquePtr TransactionExecutive::go(
auto callResults = hostContext.takeCallParameters();
callResults = parseEVMCResult(std::move(callResults), ret);

// clear unnecessary logs
if (callResults->origin != callResults->senderAddress)
{
EXECUTIVE_LOG(TRACE)
<< "clear logEntries"
<< LOG_KV("beforeClearLogSize", callResults->logEntries.size());
callResults->logEntries.clear();
}
return callResults;
}
}
Expand Down

0 comments on commit f53d2df

Please sign in to comment.