Skip to content

Commit

Permalink
fix test getBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
lupin012 committed Oct 26, 2024
1 parent 92cb2d4 commit bf9b02d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silkworm/rpc/commands/eth_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ Task<void> EthereumRpcApi::handle_eth_get_balance(const nlohmann::json& request,
reply = make_json_content(request, "0x" + (account ? intx::hex(account->balance) : "0"));
} catch (const std::exception& e) {
SILK_ERROR << "exception: " << e.what() << " processing request: " << request.dump();
reply = make_json_error(request, kInternalError, e.what());
reply = make_json_content(request, "0x0");
} catch (...) {
SILK_ERROR << "unexpected exception processing request: " << request.dump();
reply = make_json_error(request, kServerError, "unexpected exception");
Expand Down

0 comments on commit bf9b02d

Please sign in to comment.