From d96598fcfcf9d032d069906561a28e82d6a0d936 Mon Sep 17 00:00:00 2001 From: evenevent Date: Wed, 14 Aug 2024 00:43:02 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: evenevent --- x/compute/internal/types/keys.go | 2 +- x/compute/module.go | 2 +- x/registration/handler.go | 2 +- x/registration/module.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x/compute/internal/types/keys.go b/x/compute/internal/types/keys.go index 2218c5a01..ca89624a7 100644 --- a/x/compute/internal/types/keys.go +++ b/x/compute/internal/types/keys.go @@ -71,7 +71,7 @@ func GetContractStorePrefixKey(addr sdk.AccAddress) []byte { return append(ContractStorePrefix, addr...) } -// GetContractStorePrefixKey returns the store prefix for the WASM contract instance +// GetContractLabelPrefix returns the store prefix for the WASM contract instance func GetContractLabelPrefix(addr string) []byte { return append(ContractLabelPrefix, []byte(addr)...) } diff --git a/x/compute/module.go b/x/compute/module.go index 852b4d646..46b274a19 100644 --- a/x/compute/module.go +++ b/x/compute/module.go @@ -81,7 +81,7 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command { return cli.GetQueryCmd() } -// RegisterInterfaceTypes implements InterfaceModule +// RegisterInterfaces implements InterfaceModule func (b AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) { types.RegisterInterfaces(registry) } diff --git a/x/registration/handler.go b/x/registration/handler.go index f84bcff0e..38699d262 100644 --- a/x/registration/handler.go +++ b/x/registration/handler.go @@ -34,7 +34,7 @@ func NewHandler(k Keeper) sdk.Handler { } } -// filterMessageEvents returns the same events with all of type == EventTypeMessage removed. +// filteredMessageEvents returns the same events with all of type == EventTypeMessage removed. // this is so only our top-level message event comes through func filteredMessageEvents(manager *sdk.EventManager) []abci.Event { events := manager.ABCIEvents() diff --git a/x/registration/module.go b/x/registration/module.go index eb64e06ea..f228c41fa 100644 --- a/x/registration/module.go +++ b/x/registration/module.go @@ -82,7 +82,7 @@ func (AppModuleBasic) GetQueryCmd() *cobra.Command { return cli.GetQueryCmd() } -// RegisterInterfaceTypes implements InterfaceModule +// RegisterInterfaces implements InterfaceModule func (b AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry) { types.RegisterInterfaces(registry) }