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

Function transactionReceiptInfoToJSON

src/rpcwallet.cpp:178–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void transactionReceiptInfoToJSON(const TransactionReceiptInfo& resExec, UniValue& entry) {
179 assignJSON(entry, resExec);
180
181 const auto& logs = resExec.logs;
182 UniValue logEntries(UniValue::VARR);
183 for(const auto&log : logs){
184 UniValue logEntry(UniValue::VOBJ);
185 assignJSON(logEntry, log, true);
186 logEntries.push_back(logEntry);
187 }
188 entry.push_back(Pair("log", logEntries));
189}
190
191size_t parseUInt(const UniValue& val, size_t defaultVal) {
192 if (val.isNull()) {

Callers 2

searchlogsFunction · 0.85
gettransactionreceiptFunction · 0.85

Calls 3

assignJSONFunction · 0.85
PairFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected