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

x/auth: prefix account by type #8487

Closed
wants to merge 1 commit into from

Conversation

fedekunze
Copy link
Collaborator

@fedekunze fedekunze commented Feb 1, 2021

closes: #6407

Comment on lines 29 to +31
func (ak AccountKeeper) GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI {
store := ctx.KVStore(ak.key)
bz := store.Get(types.AddressStoreKey(addr))
bz := store.Get(types.AddressStoreKey("", addr)) //TODO: figure out how to pass in the type
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure of how to proceed with this without making a breaking change. @alexanderbez suggested using bech32 HRP but the prefix is the same for different account types (base, vesting, module, etc). Any ideas? @amaurymartiny @aaronc @AdityaSripal @clevinson ?

@fedekunze fedekunze added T: State Machine Breaking State machine breaking changes (impacts consensus). T: API Breaking Breaking changes that impact APIs and the SDK only (not state machine). labels Feb 1, 2021
@fedekunze fedekunze closed this Feb 26, 2021
@fedekunze fedekunze deleted the fedekunze/6407-prefix-account branch February 26, 2021 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:x/auth T: API Breaking Breaking changes that impact APIs and the SDK only (not state machine). T: State Machine Breaking State machine breaking changes (impacts consensus).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prefix Account store key by type
1 participant