You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Legacy Proposals API is not working if empty proposal is submitted.
If an empty proposal is submitted then Legacy Proposals API is not returning the previous proposals also.
First I have submitted a Software upgrade proposal and I tried to get the proposals with legacy API, then it has returned the proposal without any problem.
Immediately I have submitted a second proposal which is an empty proposal and tried to get the proposals, It is not returning the all proposals instead it is returning the following response.
{
"code": 2,
"message": "codespace sdk code 29: invalid type: can't convert a gov/v1 Proposal to gov/v1beta1 Proposal when amount of
proposal messages is more than one",
"details": [ ]
}
Version
v0.46.x
Steps to Reproduce
First submit a non empty proposal (Example: "/cosmos.upgrade.v1beta1.MsgSoftwareUpgrade" )
This is behaving as expected, actually. The endpoint will not return correct data if it was skipping a proposal.
Hence, it simply fails: #14347 (comment)
We could convert a proposal without message to a legacy text proposal, but I am not sure if that will render well, given metadata will just be dumped as it. What do you think @alexanderbez?
Summary of Bug
Legacy Proposals API is not working if empty proposal is submitted.
If an empty proposal is submitted then Legacy Proposals API is not returning the previous proposals also.
First I have submitted a Software upgrade proposal and I tried to get the proposals with legacy API, then it has returned the proposal without any problem.
Immediately I have submitted a second proposal which is an empty proposal and tried to get the proposals, It is not returning the all proposals instead it is returning the following response.
Version
v0.46.x
Steps to Reproduce
The text was updated successfully, but these errors were encountered: