diff --git a/test/state/state.cpp b/test/state/state.cpp index 74e58bf827..70a05122a4 100644 --- a/test/state/state.cpp +++ b/test/state/state.cpp @@ -211,6 +211,17 @@ std::variant transition(State& state, const // Cannot put it into constructor call because logs are std::moved from host instance. receipt.logs_bloom_filter = compute_bloom_filter(receipt.logs); + // Set accounts and their storage access status to cold in the end of transition process + for (auto& acc : state.get_accounts()) + { + acc.second.access_status = EVMC_ACCESS_COLD; + for (auto& [_, val] : acc.second.storage) + { + val.access_status = EVMC_ACCESS_COLD; + val.original = val.current; + } + } + return receipt; }