From 5280a4c9714b70cba5729ec6d524ae06ac51ca1c Mon Sep 17 00:00:00 2001 From: CHAMI Rachid Date: Tue, 10 Oct 2023 21:22:11 +0200 Subject: [PATCH] fix: LatestAttestationNonce constant name typo (#2646) ## Overview Fixes typo ## Checklist - [ ] 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 0e1fa70cc36f74d1be8a43f38afb0134a02dd1d6) --- 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