MCPcopy Create free account
hub / github.com/LUX-Core/lux / exportLog

Function exportLog

src/cpp-ethereum/test/libtesteth/TestHelper.cpp:176–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176json_spirit::mArray exportLog(eth::LogEntries _logs)
177{
178 json_spirit::mArray ret;
179 if (_logs.size() == 0) return ret;
180 for (LogEntry const& l: _logs)
181 {
182 json_spirit::mObject o;
183 o["address"] = toString(l.address);
184 json_spirit::mArray topics;
185 for (auto const& t: l.topics)
186 topics.push_back(toString(t));
187 o["topics"] = topics;
188 o["data"] = toHex(l.data, 2, HexPrefix::Add);
189 o["bloom"] = toString(l.bloom());
190 ret.push_back(o);
191 }
192 return ret;
193}
194
195u256 toInt(json_spirit::mValue const& _v)
196{

Callers 2

exportTestMethod · 0.85
doVMTestsFunction · 0.85

Calls 5

toHexFunction · 0.85
toStringFunction · 0.50
sizeMethod · 0.45
push_backMethod · 0.45
bloomMethod · 0.45

Tested by

no test coverage detected