diff --git a/libweb3jsonrpc/WebThreeStubServerBase.cpp b/libweb3jsonrpc/WebThreeStubServerBase.cpp index 25f92f3b9..3c28f284b 100644 --- a/libweb3jsonrpc/WebThreeStubServerBase.cpp +++ b/libweb3jsonrpc/WebThreeStubServerBase.cpp @@ -163,15 +163,8 @@ static dev::eth::LogFilter toLogFilter(Json::Value const& _json) // commented to filter.address(jsToAddress(_json["address"].asString())); } if (!_json["topics"].empty()) - { - unsigned i = 0; - for (auto t: _json["topics"]) - { - for (auto tt: t) - filter.topic(i, jsToFixed<32>(tt.asString())); - i++; - } - } + for (unsigned i = 0; i < _json["topics"].size(); i++) + filter.topic(i, jsToFixed<32>(_json["topics"][i].asString())); return filter; }