Skip to content

Commit

Permalink
fix: typos (#4149)
Browse files Browse the repository at this point in the history
Correcting the typo from `LatestAttestationtNonce` to
`LatestAttestationNonce` ensures code consistency, improves readability,
and prevents confusion among developers. Accurate naming makes the code
easier to maintain and reduces the risk of future errors.

Check the code and ensure that all variables use
`LatestAttestationNonce` consistently.
Thanks
  • Loading branch information
futreall authored Dec 23, 2024
1 parent 71dacba commit 3dcfd7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/architecture/adr-004-qgb-relayer-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ 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))
}
```

Expand All @@ -210,7 +210,7 @@ This will **panic** in the following cases:
```go
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 Down

0 comments on commit 3dcfd7e

Please sign in to comment.