8000 imp(vesting): store empty byte array instead of "true" bytes by MalteHerrmann · Pull Request #1788 · evmos/evmos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

imp(vesting): store empty byte array instead of "true" bytes #1788

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

Merged
merged 2 commits into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions x/vesting/keeper/gov.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (k Keeper) HasGovClawbackDisabled(ctx sdk.Context, addr sdk.AccAddress) boo
func (k Keeper) SetGovClawbackDisabled(ctx sdk.Context, addr sdk.AccAddress) {
//nolint:gocritic
key := append(types.KeyPrefixGovClawbackDisabledKey, addr.Bytes()...)
ctx.KVStore(k.storeKey).Set(key, []byte{0x01})
ctx.KVStore(k.storeKey).Set(key, []byte{})
}

// DeleteGovClawbackDisabled enables the given vesting account address to be clawed back
Expand All @@ -46,7 +46,7 @@ func (k Keeper) HasActiveClawbackProposal(ctx sdk.Context, addr sdk.AccAddress)
// proposal by writing it to store under the corresponding key.
func (k Keeper) SetActiveClawbackProposal(ctx sdk.Context, addr sdk.AccAddress) {
key := buildActiveAccountClawbackProposalKey(addr)
ctx.KVStore(k.storeKey).Set(key, []byte{0x01})
ctx.KVStore(k.storeKey).Set(key, []byte{})
}

// DeleteActiveClawbackProposal deletes the entry for the given vesting account address
Expand Down
0