wallet api: don't truncate address in subaddress_account

Same behaviour as subaddress.cpp now.
This commit is contained in:
selsta 2019-01-15 20:10:19 +01:00
parent 094b0c4d00
commit b8c5f550c1
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E

View file

@ -62,7 +62,7 @@ void SubaddressAccountImpl::refresh()
{ {
m_rows.push_back(new SubaddressAccountRow( m_rows.push_back(new SubaddressAccountRow(
i, i,
m_wallet->m_wallet->get_subaddress_as_str({i,0}).substr(0,6), m_wallet->m_wallet->get_subaddress_as_str({i,0}),
m_wallet->m_wallet->get_subaddress_label({i,0}), m_wallet->m_wallet->get_subaddress_label({i,0}),
cryptonote::print_money(m_wallet->m_wallet->balance(i)), cryptonote::print_money(m_wallet->m_wallet->balance(i)),
cryptonote::print_money(m_wallet->m_wallet->unlocked_balance(i)) cryptonote::print_money(m_wallet->m_wallet->unlocked_balance(i))