Skip to content

Commit

Permalink
zoneconcierge: typos and rename filenames (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianElvis authored Dec 19, 2022
1 parent 09c6803 commit 5e3cc21
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/zoneconcierge/keeper/chain_info_indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (k Keeper) tryToUpdateLatestHeader(ctx sdk.Context, chainID string, header
return nil
}

func (k Keeper) trpToUpdateLatestForkHeader(ctx sdk.Context, chainID string, header *types.IndexedHeader) error {
func (k Keeper) tryToUpdateLatestForkHeader(ctx sdk.Context, chainID string, header *types.IndexedHeader) error {
if header == nil {
return sdkerrors.Wrapf(types.ErrInvalidHeader, "header is nil")
}
Expand Down
2 changes: 1 addition & 1 deletion x/zoneconcierge/keeper/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (h Hooks) AfterHeaderWithValidCommit(ctx sdk.Context, txHash []byte, header
panic(err)
}
// update the latest fork in chain info
if err := h.k.trpToUpdateLatestForkHeader(ctx, indexedHeader.ChainId, &indexedHeader); err != nil {
if err := h.k.tryToUpdateLatestForkHeader(ctx, indexedHeader.ChainId, &indexedHeader); err != nil {
panic(err)
}
} else {
Expand Down
File renamed without changes.

0 comments on commit 5e3cc21

Please sign in to comment.