From 0e75423fc936de6047596a62b692c9f6dc7af1cc Mon Sep 17 00:00:00 2001 From: linchizhen Date: Fri, 31 May 2024 21:21:39 +0800 Subject: [PATCH] chore: fix some function names (#2297) Signed-off-by: linchizhen --- x/crosschain/keeper/refund.go | 2 +- x/lightclient/types/block_header_verification.go | 2 +- zetaclient/chains/bitcoin/observer/observer.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x/crosschain/keeper/refund.go b/x/crosschain/keeper/refund.go index e24a3f0158..19afd1be1f 100644 --- a/x/crosschain/keeper/refund.go +++ b/x/crosschain/keeper/refund.go @@ -60,7 +60,7 @@ func (k Keeper) RefundAmountOnZetaChainGas( return nil } -// RefundAmountOnZetaChainGas refunds the amount of the cctx on ZetaChain in case of aborted cctx with cointype zeta +// RefundAmountOnZetaChainZeta refunds the amount of the cctx on ZetaChain in case of aborted cctx with cointype zeta func (k Keeper) RefundAmountOnZetaChainZeta( ctx sdk.Context, cctx types.CrossChainTx, diff --git a/x/lightclient/types/block_header_verification.go b/x/lightclient/types/block_header_verification.go index 351a971d1b..20ae380006 100644 --- a/x/lightclient/types/block_header_verification.go +++ b/x/lightclient/types/block_header_verification.go @@ -61,7 +61,7 @@ func (b *BlockHeaderVerification) IsChainEnabled(chainID int64) bool { return false } -// GetHeaderSupportedChainIDList returns a list of chain IDs that have block header verification enabled +// GetHeaderEnabledChainIDs returns a list of chain IDs that have block header verification enabled func (b *BlockHeaderVerification) GetHeaderEnabledChainIDs() []int64 { var enabledChains []int64 for _, v := range b.HeaderSupportedChains { diff --git a/zetaclient/chains/bitcoin/observer/observer.go b/zetaclient/chains/bitcoin/observer/observer.go index 0a4a062aef..91f0d695f4 100644 --- a/zetaclient/chains/bitcoin/observer/observer.go +++ b/zetaclient/chains/bitcoin/observer/observer.go @@ -634,7 +634,7 @@ func GetTxResultByHash( return hash, txResult, nil } -// GetBlockHeightByTxHash gets the block height by block hash +// GetBlockHeightByHash gets the block height by block hash func GetBlockHeightByHash( rpcClient interfaces.BTCRPCClient, hash string,