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