Open
Description
Prerequisites
- I am running the latest CosmPy version.
- I checked the documentation and found no answer to my problem.
- I checked the existing issues to make sure my problem has not already been reported.
- I have read the code of conduct before creating this issue.
Expected Behavior
Presumably proposals should be returned that fit the given status: https://github.com/fetchai/cosmpy/blob/main/tests/unit/test_gov/test_rest_client.py#L93
Current Behavior
Response: 400, b'{\n "code": 3,\n "message": "type mismatch, parameter: proposal_id, error: strconv.ParseUint: parsing \\"\\": invalid syntax",\n "details": [\n ]\n}')
To Reproduce
from cosmpy.common.rest_client import RestClient
from cosmpy.gov.rest_client import GovRestClient
from cosmpy.protos.cosmos.gov.v1beta1.query_pb2 import QueryProposalsRequest
gov_client = GovRestClient(RestClient(f"https://rest-fetchhub.fetch.ai"))
request = QueryProposalsRequest()
request.proposal_status = 2
response = gov_client.Proposals(request)
Context
Cosmpy: v0.8.0
Python: v3.11
Failure Logs
No response
Metadata
Metadata
Assignees
Labels
No labels