Skip to content

Commit

Permalink
fix: LatestAttestationNonce constant name typo (backport #2646) (#2653)
Browse files Browse the repository at this point in the history
This is an automatic backport of pull request #2646 done by
[Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the
[documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on
`<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you
can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: CHAMI Rachid <[email protected]>
  • Loading branch information
mergify[bot] and rach-id authored Oct 11, 2023
1 parent 3fa42b5 commit 01dad84
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 01dad84

Please sign in to comment.