| 176 | } |
| 177 | |
| 178 | void 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 | |
| 191 | size_t parseUInt(const UniValue& val, size_t defaultVal) { |
| 192 | if (val.isNull()) { |
no test coverage detected