open-block-explorer icon indicating copy to clipboard operation
open-block-explorer copied to clipboard

eosio.wrap account not found

Open Viterbo opened this issue 1 year ago • 0 comments

Describe the bug The eosio.wrap account appears as not found when the problem is that the backend is not returning the total_resources data and the code fails to avoid the null value.

To Reproduce https://explorer.telos.net/account/eosio.wrap?tab=transactions

Expected behavior If it exists (in this case it does) the accounts must be shown. If the account is a system account and it does not bring the resources info, we need to hide the resources detail and show something else instead (like a text explaining it's a system account and it does not have resources info).

Aditional info The current problem is that the total_resources property comes null and WWE are not avoiding that null value:

stakedResources.value =
    Number(accountData.value.total_resources.cpu_weight.value || 0) +
    Number(accountData.value.total_resources.net_weight.value || 0);

Screenshots image

Viterbo avatar Jun 04 '24 16:06 Viterbo