Skip to content

Commit

Permalink
make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow authored May 28, 2024
1 parent 97d0322 commit ef8a40b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions silkworm/rpc/core/evm_trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1761,12 +1761,12 @@ void CreateTracer::on_execution_start(evmc_revision, const evmc_message& msg, ev

void EntryTracer::on_execution_end(const evmc_result& result, const silkworm::IntraBlockState& /* intra_block_state */) noexcept {
if (traces_stack_idx_.empty())
return;
return;
auto& trace_idx = traces_stack_idx_.top();
traces_stack_idx_.pop();

if (trace_idx != std::numeric_limits<uint64_t>::max()) {
result_[trace_idx].output = "0x" + silkworm::to_hex(silkworm::ByteView{result.output_data, result.output_size});
result_[trace_idx].output = "0x" + silkworm::to_hex(silkworm::ByteView{result.output_data, result.output_size});
}
}

Expand All @@ -1786,9 +1786,9 @@ void EntryTracer::on_execution_start(evmc_revision rev, const evmc_message& msg,

// Ignore precompiles in the returned trace (maybe we shouldn't?)
if (precompile::is_precompile(msg.code_address, rev)) {
// writes special value for index
traces_stack_idx_.emplace(std::numeric_limits<uint64_t>::max());
return;
// writes special value for index
traces_stack_idx_.emplace(std::numeric_limits<uint64_t>::max());
return;
}

if (msg.kind == evmc_call_kind::EVMC_CREATE) {
Expand Down

0 comments on commit ef8a40b

Please sign in to comment.