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

Unnecessary field option in staking/v1beta1/authz.proto #24144

Open
hallazzang opened this issue Mar 26, 2025 · 0 comments
Open

Unnecessary field option in staking/v1beta1/authz.proto #24144

hallazzang opened this issue Mar 26, 2025 · 0 comments

Comments

@hallazzang
Copy link
Contributor

Since max_tokens is not a repeated field, [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coin"] doesn't have any effect:

cosmos.base.v1beta1.Coin max_tokens = 1 [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coin"];

Also the option value seems incorrect, too. It supposed to be github.com/cosmos/cosmos-sdk/types.Coins if max_tokens were a repeated field. We should remove this unnecessary gogoproto field option.

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

Successfully merging a pull request may close this issue.

1 participant