Exemple #1
0
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;
}
Exemple #2
0
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;
}