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

Add complaint_id to Complaint type #508

Open
abefernan opened this issue Jun 30, 2022 · 1 comment
Open

Add complaint_id to Complaint type #508

abefernan opened this issue Jun 30, 2022 · 1 comment

Comments

@abefernan
Copy link

The Complaint type does not include the ID, so when querying ListComplaintsResp we cannot then query specific Complaints.

complaint_id should be added to the returned response.

@maurolacy
Copy link
Contributor

maurolacy commented Jun 30, 2022

As an alternative, the array id in the returned Complaint array can be used as the complaint id.

For pagination, use the last array id to get the next batch. Taking care of using the absolute offset (i.e. a running counter), instead of the relative array position.

This works because the complaint ids are being auto-generated/incremented in the contract.

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