Skip to content

Commit

Permalink
fix call build in precompile without log bug bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyShi22 committed Jan 22, 2024
1 parent 3a15396 commit 4a7b3b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bcos-executor/src/vm/HostContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,12 @@ evmc_result HostContext::callBuiltInPrecompiled(
}
}

if (features().get(ledger::Features::Flag::bugfix_event_log_order))
{
// put event log by stack(dfs) order
m_callParameters->logEntries = std::move(_request->logEntries);
}

if (resultCode != (int32_t)TransactionStatus::None)
{
callResults->type = CallParameters::REVERT;
Expand Down

0 comments on commit 4a7b3b0

Please sign in to comment.