Skip to content

Commit

Permalink
Update adr-004-qgb-relayer-security.md
Browse files Browse the repository at this point in the history
  • Loading branch information
futreall authored Dec 20, 2024
1 parent 415e870 commit 8b2408b
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 8b2408b

Please sign in to comment.