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

fix: LatestAttestationNonce constant name typo (backport #2646) #2653

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions x/qgb/keeper/keeper_attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ func (k Keeper) SetLatestAttestationNonce(ctx sdk.Context, nonce uint64) {
}

store := ctx.KVStore(k.storeKey)
store.Set([]byte(types.LatestAttestationtNonce), types.UInt64Bytes(nonce))
store.Set([]byte(types.LatestAttestationNonce), types.UInt64Bytes(nonce))
}

// CheckLatestAttestationNonce returns true if the latest attestation request
// nonce is declared in the store and false if it has not been initialized.
func (k Keeper) CheckLatestAttestationNonce(ctx sdk.Context) bool {
store := ctx.KVStore(k.storeKey)
has := store.Has([]byte(types.LatestAttestationtNonce))
has := store.Has([]byte(types.LatestAttestationNonce))
return has
}

Expand All @@ -71,7 +71,7 @@ func (k Keeper) CheckLatestAttestationNonce(ctx sdk.Context) bool {
// method.
func (k Keeper) GetLatestAttestationNonce(ctx sdk.Context) uint64 {
store := ctx.KVStore(k.storeKey)
bytes := store.Get([]byte(types.LatestAttestationtNonce))
bytes := store.Get([]byte(types.LatestAttestationNonce))
if bytes == nil {
panic("nil LatestAttestationNonce")
}
Expand Down
4 changes: 2 additions & 2 deletions x/qgb/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const (
// height
LatestUnBondingBlockHeight = "LatestUnBondingBlockHeight"

// LatestAttestationtNonce indexes the latest attestation request nonce
LatestAttestationtNonce = "LatestAttestationNonce"
// LatestAttestationNonce indexes the latest attestation request nonce
LatestAttestationNonce = "LatestAttestationNonce"

// EarliestAvailableAttestationNonce indexes the earliest available
// attestation nonce
Expand Down
Loading