-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
proposal.String()
panics with nested Anys
#10965
Closed
4 tasks
Labels
Comments
19 tasks
This needs to be fixed in regen proto fork I assume. |
Closed
4 tasks
19 tasks
19 tasks
When we fix this, does that mean we are able to rely on |
19 tasks
Repository owner
moved this from 👀 Needs Review
to 👏 Done
in Cosmos-SDK Legacy
Nov 14, 2022
julienrbrt
added a commit
that referenced
this issue
Nov 14, 2022
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Summary of Bug
When calling
.String()
on a proto struct that has nested Anys, it panics. A quick debugging leads to the fieldany.cachedValue
panicking.see stack
It seems to me that gogoproto panics when printing our Any's cachedValue.
ref: #10868 (comment)
Version
8f13e99
Steps to Reproduce
cosmos-sdk/x/gov/types/v1beta2/proposals_test.go
Lines 31 to 42 in 8f13e99
For Admin Use
The text was updated successfully, but these errors were encountered: