Wrong asset format in list_proposal_votes method output (Condenser API)
daily_pay
field returned nai
format instead of legacy
.
Received:
{
'id': 0,
'voter': 'alice',
'proposal': {
'id': 0,
'proposal_id': 0,
'creator': 'alice',
'receiver': 'alice',
'start_date': '2022-08-22T14: 51: 11',
'end_date': '2023-07-24T14: 51: 11',
'daily_pay': {
'amount': '5000',
'precision': 3,
'nai': '@@000000013'
},
'subject': 'testsubject',
'permlink': 'test-permlink',
'total_votes': 0,
'status': 'inactive'
}
}
Expected:
{
'id': 0,
'voter': 'alice',
'proposal': {
'id': 0,
'proposal_id': 0,
'creator': 'alice',
'receiver': 'alice',
'start_date': '2022-08-22T14: 51: 11',
'end_date': '2023-07-24T14: 51: 11',
'daily_pay': '5000.000 HBD',
'subject': 'testsubject',
'permlink': 'test-permlink',
'total_votes': 0,
'status': 'inactive'
}
}