Invalid asset type when incomplete api_comment_object is returned
When incomplete api_comment_object
is returned following fields have wrong asset type:
total_payout_value
curator_payout_value
max_accepted_payout
These fields are returning HIVES instead of HBD.
Example curl:
curl -d '{"jsonrpc": "2.0", "id": 1, "method": "database_api.find_comments", "params": {"comments": [["herverisson", "homefront-a-one-act-play-last-part"]]}}' http://hive-staging.pl.syncad.com:58091 | jq . | less
Response:
{
"jsonrpc": "2.0",
"result": {
"comments": [
{
"id": 884025,
"author": "",
"permlink": "",
"category": "",
"parent_author": "",
"parent_permlink": "",
"title": "",
"body": "",
"json_metadata": "",
"last_update": "1970-01-01T00:00:00",
"created": "1970-01-01T00:00:00",
"last_payout": "1970-01-01T00:00:00",
"depth": 0,
"children": 0,
"net_rshares": 0,
"abs_rshares": 0,
"vote_rshares": 0,
"children_abs_rshares": 0,
"cashout_time": "1970-01-01T00:00:00",
"max_cashout_time": "1970-01-01T00:00:00",
"total_vote_weight": 0,
"reward_weight": 0,
"total_payout_value": {
"amount": "0",
"precision": 3,
"nai": "@@000000021"
},
"curator_payout_value": {
"amount": "0",
"precision": 3,
"nai": "@@000000021"
},
"author_rewards": 0,
"net_votes": 0,
"root_author": "",
"root_permlink": "",
"max_accepted_payout": {
"amount": "0",
"precision": 3,
"nai": "@@000000021"
},
"percent_hbd": 0,
"allow_replies": false,
"allow_votes": false,
"allow_curation_rewards": false,
"was_voted_on": false,
"beneficiaries": []
}
]
},
"id": 1
}