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

[Bug]: Potential minor bug on /accounts/{address}/delegation endpoint #1151

Open
silvestrst-crypto opened this issue Nov 22, 2023 · 1 comment

Comments

@silvestrst-crypto
Copy link

Contact Details

No response

Description

Potential minor bug on /accounts/{address}/delegation endpoint

Steps to reproduce

image

Field userUndelegatedList is marked as required, however, when the list is empty it seems that deserialization for that field is skipped:
https://api.elrond.com/accounts//delegation

It might be that this issue was not hit before, but recently the response deserialization failed (rust serde) due to absence of the required field.

It's a very minor point, as the fix is simple on my side, but decided to flag it anyway.

On which network is the bug manifesting itself?

Mainnet

Relevant log output

error decoding response body: missing field `userUndelegatedList` at line 1 column 253


### Code of Conduct

- [X] I agree to follow this project's Code of Conduct
@cfaur09
Copy link
Contributor

cfaur09 commented Nov 23, 2023

Hi, thanks for reporting this, we will fix this issue 🙏

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

2 participants