Json::Value toJson(dev::eth::TransactionReceipt const& _t) { Json::Value res; res["stateRoot"] = toJS(_t.stateRoot()); res["gasUsed"] = toJS(_t.gasUsed()); res["bloom"] = toJS(_t.bloom()); res["log"] = dev::toJson(_t.log()); return res; }
Json::Value toJson(dev::eth::TransactionReceipt const& _t) { Json::Value res; if (_t.hasStatusCode()) res["status"] = toString(_t.statusCode()); else res["stateRoot"] = toJS(_t.stateRoot()); res["gasUsed"] = toJS(_t.cumulativeGasUsed()); res["bloom"] = toJS(_t.bloom()); res["log"] = dev::toJson(_t.log()); return res; }