Skip to content

Commit

Permalink
ci: fix clang tidy after PR 2499 (#2506)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat authored Nov 13, 2024
1 parent 3984398 commit c62b701
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions silkworm/db/state/state_index_builders_factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ namespace silkworm::db::state {

class StateIndexBuildersFactory : public snapshots::IndexBuildersFactory {
public:
StateIndexBuildersFactory() {}
StateIndexBuildersFactory(snapshots::Schema::RepositoryDef schema)
StateIndexBuildersFactory() = default;
explicit StateIndexBuildersFactory(snapshots::Schema::RepositoryDef schema)
: schema_{std::move(schema)} {}
~StateIndexBuildersFactory() override = default;

Expand Down
8 changes: 4 additions & 4 deletions silkworm/rpc/core/evm_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@ ExecutionResult EVMExecutor::call_with_receipt(
receipt.bloom = logs_bloom(logs);
receipt.gas_used = txn.gas_limit - exec_result.gas_left;
receipt.type = static_cast<uint8_t>(txn.type);
for (size_t j = 0; j < logs.size(); ++j) {
for (const auto& log : logs) {
Log rpc_log;
rpc_log.address = logs[j].address;
rpc_log.data = logs[j].data;
rpc_log.topics = logs[j].topics;
rpc_log.address = log.address;
rpc_log.data = log.data;
rpc_log.topics = log.topics;
receipt.logs.push_back(rpc_log);
}

Expand Down

0 comments on commit c62b701

Please sign in to comment.