From 01dad845ab6927e03741f4f14c3afe6b1281ce6b Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 11 Oct 2023 10:20:36 +0200 Subject: [PATCH] fix: LatestAttestationNonce constant name typo (backport #2646) (#2653) This is an automatic backport of pull request #2646 done by [Mergify](https://mergify.com). ---
Mergify commands and options
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 ` will backport this PR on `` 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
Co-authored-by: CHAMI Rachid --- x/qgb/keeper/keeper_attestation.go | 6 +++--- x/qgb/types/keys.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/x/qgb/keeper/keeper_attestation.go b/x/qgb/keeper/keeper_attestation.go index 51c3f1b21d..f48f1d1470 100644 --- a/x/qgb/keeper/keeper_attestation.go +++ b/x/qgb/keeper/keeper_attestation.go @@ -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 } @@ -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") } diff --git a/x/qgb/types/keys.go b/x/qgb/types/keys.go index 5a2c83b828..f82ba1e937 100644 --- a/x/qgb/types/keys.go +++ b/x/qgb/types/keys.go @@ -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