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

StoreKey and Querier Key Usage Ambiguous #2838

Closed
jackzampolin opened this issue Nov 15, 2018 · 2 comments
Closed

StoreKey and Querier Key Usage Ambiguous #2838

jackzampolin opened this issue Nov 15, 2018 · 2 comments
Assignees
Labels
Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.

Comments

@jackzampolin
Copy link
Member

There are may spots in the SDK where store key is passed in as an argument. This can (and in many situations seems to) lead to hard coded strings with the store keys being used (CLI has a number of examples of this). If left unchecked this will cause issues with inconsistencies if we ever decide to rename any of the stores. I don't know the best way forward here, but would love some thoughts on how to fix this.

One example https://github.com/cosmos/cosmos-sdk/blob/develop/client/lcd/root.go#L167

cc @alexanderbez

@alexanderbez
Copy link
Contributor

alexanderbez commented Nov 16, 2018

Yeah, I do think they should live as constants somewhere. Thing we have to be careful of is still abiding by the object capability model and not allowing for arbitrary modules/keepers to get access to stores they shouldn't be getting access to.

@alexanderbez alexanderbez added the Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. label Nov 16, 2018
@jackzampolin jackzampolin changed the title StoreKey Usage Ambiguous StoreKey and Querier Key Usage Ambiguous Dec 13, 2018
@jackzampolin jackzampolin self-assigned this Dec 13, 2018
@jackzampolin
Copy link
Member Author

This is addressed by #3119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.
Projects
None yet
Development

No branches or pull requests

2 participants