diff --git a/bcos-executor/src/vm/HostContext.cpp b/bcos-executor/src/vm/HostContext.cpp index 5cd5daca45..9d59adb241 100644 --- a/bcos-executor/src/vm/HostContext.cpp +++ b/bcos-executor/src/vm/HostContext.cpp @@ -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;