Open pharr117 opened 1 year ago
Currently, the code finds the first upgrade proposal and uses that when reaching out to the /cosmos/gov/v1beta1/proposals?proposal_status=2 endpoint:
/cosmos/gov/v1beta1/proposals?proposal_status=2
https://github.com/DefiantLabs/cosmos-upgrades/blob/18197052b24f9d07ddc1a9b0b8b9c80b1979d5e1/app.py#L272-L278
We should handle multiple upgrade proposals in case a chain has multiple active proposals being voted on.
We should consider whether the object data type is the best response value and maybe instead return an array of upgrade proposals in this case.
Currently, the code finds the first upgrade proposal and uses that when reaching out to the
/cosmos/gov/v1beta1/proposals?proposal_status=2
endpoint:https://github.com/DefiantLabs/cosmos-upgrades/blob/18197052b24f9d07ddc1a9b0b8b9c80b1979d5e1/app.py#L272-L278
We should handle multiple upgrade proposals in case a chain has multiple active proposals being voted on.
We should consider whether the object data type is the best response value and maybe instead return an array of upgrade proposals in this case.