From 4a7b3b0ab16984475f1cc83c4010d49df90d7cc9 Mon Sep 17 00:00:00 2001 From: JimmyShi22 <417711026@qq.com> Date: Mon, 22 Jan 2024 17:59:11 +0800 Subject: [PATCH] fix call build in precompile without log bug bug --- bcos-executor/src/vm/HostContext.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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;