From 7f9a57c7ade672e76d47473a8d0bbf6c0657cb7d Mon Sep 17 00:00:00 2001 From: Runchao Han Date: Mon, 19 Dec 2022 15:01:50 +1100 Subject: [PATCH] minor --- x/zoneconcierge/keeper/chain_info_indexer.go | 2 +- x/zoneconcierge/keeper/hooks.go | 2 +- x/zoneconcierge/keeper/{ibc_heartbeat.go => ibc_packet.go} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename x/zoneconcierge/keeper/{ibc_heartbeat.go => ibc_packet.go} (100%) diff --git a/x/zoneconcierge/keeper/chain_info_indexer.go b/x/zoneconcierge/keeper/chain_info_indexer.go index 164a2193d..b4b41d56d 100644 --- a/x/zoneconcierge/keeper/chain_info_indexer.go +++ b/x/zoneconcierge/keeper/chain_info_indexer.go @@ -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") } diff --git a/x/zoneconcierge/keeper/hooks.go b/x/zoneconcierge/keeper/hooks.go index 11ad6d1f3..af8dfa8cd 100644 --- a/x/zoneconcierge/keeper/hooks.go +++ b/x/zoneconcierge/keeper/hooks.go @@ -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 { diff --git a/x/zoneconcierge/keeper/ibc_heartbeat.go b/x/zoneconcierge/keeper/ibc_packet.go similarity index 100% rename from x/zoneconcierge/keeper/ibc_heartbeat.go rename to x/zoneconcierge/keeper/ibc_packet.go