Skip to content

Commit

Permalink
fix: LatestAttestationNonce constant name typo (#2646)
Browse files Browse the repository at this point in the history
<!--
Please read and fill out this form before submitting your PR.

Please make sure you have reviewed our contributors guide before
submitting your
first PR.
-->

## Overview

Fixes typo

## Checklist

<!--
Please complete the checklist to ensure that the PR is ready to be
reviewed.

IMPORTANT:
PRs should be left in Draft until the below checklist is completed.
-->

- [ ] New and updated code has appropriate documentation
- [ ] New and updated code has new and/or updated testing
- [ ] Required CI checks are passing
- [ ] Visual proof for any user facing features like CLI or
documentation updates
- [ ] Linked issues closed with keywords

(cherry picked from commit 0e1fa70)
  • Loading branch information
rach-id authored and mergify[bot] committed Oct 10, 2023
1 parent 3fa42b5 commit 5280a4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit 5280a4c

Please sign in to comment.