Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eosio.wrap account not found #855

Open
Viterbo opened this issue Jun 4, 2024 · 0 comments
Open

eosio.wrap account not found #855

Viterbo opened this issue Jun 4, 2024 · 0 comments

Comments

@Viterbo
Copy link
Collaborator

Viterbo commented Jun 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant