Skip to content

Commit

Permalink
make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow authored Sep 1, 2024
1 parent 69feacc commit 4f6cbab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions silkworm/rpc/commands/eth_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,8 @@ Task<void> EthereumRpcApi::handle_eth_get_uncle_count_by_block_hash(const nlohma
if (!block_with_hash) {
reply = make_json_content(request, nullptr);
} else {
auto ommers = block_with_hash->block.ommers.size();
reply = make_json_content(request, to_quantity(ommers));
auto ommers = block_with_hash->block.ommers.size();
reply = make_json_content(request, to_quantity(ommers));
}
} catch (const std::exception& e) {
SILK_ERROR << "exception: " << e.what() << " processing request: " << request.dump();
Expand Down Expand Up @@ -1434,7 +1434,7 @@ Task<void> EthereumRpcApi::handle_eth_call_bundle(const nlohmann::json& request,
if (!error) {
bundle_info.bundle_hash = hash_of(hash_data);
reply = make_json_content(request, bundle_info);
}
}
} catch (const std::invalid_argument& iv) {
reply = make_json_content(request, {});
} catch (const std::exception& e) {
Expand Down

0 comments on commit 4f6cbab

Please sign in to comment.