Skip to content

Commit

Permalink
rename topic to topics (FISCO-BCOS#2144)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywy2090 authored Jan 21, 2022
1 parent 7d559de commit c8eec30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bcos-rpc/bcos-rpc/jsonrpc/JsonRpcImpl_2_0.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,10 @@ void JsonRpcImpl_2_0::toJsonResp(Json::Value& jResp, const std::string& _txHash,
{
Json::Value jLog;
jLog["address"] = std::string(logEntry.address());
jLog["topic"] = Json::Value(Json::arrayValue);
jLog["topics"] = Json::Value(Json::arrayValue);
for (const auto& topic : logEntry.topics())
{
jLog["topic"].append(topic.hexPrefixed());
jLog["topics"].append(topic.hexPrefixed());
}
jLog["data"] = toHexStringWithPrefix(logEntry.data());
jResp["logEntries"].append(jLog);
Expand Down

0 comments on commit c8eec30

Please sign in to comment.