From 5a7309d697cd4cbf95b6b71a98f05919dd140791 Mon Sep 17 00:00:00 2001 From: xihuwenhua Date: Sun, 20 Jul 2025 01:06:45 +0800 Subject: [PATCH] chore: fix inconsistent function name in comment Signed-off-by: xihuwenhua --- app/app.go | 2 +- x/oracle/utils/packet_utils.go | 2 +- x/vaults/keeper/abci.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/app.go b/app/app.go index 7bfa4302..ed78a41e 100644 --- a/app/app.go +++ b/app/app.go @@ -325,7 +325,7 @@ func (app *App) GetMemKey(storeKey string) *storetypes.MemoryStoreKey { return app.AppKeepers.GetMemKey(storeKey) } -// kvStoreKeys returns all the kv store keys registered inside App. +// KvStoreKeys returns all the kv store keys registered inside App. func (app *App) KvStoreKeys() map[string]*storetypes.KVStoreKey { return app.AppKeepers.GetKVStoreKey() diff --git a/x/oracle/utils/packet_utils.go b/x/oracle/utils/packet_utils.go index 6c43a771..dae212a2 100644 --- a/x/oracle/utils/packet_utils.go +++ b/x/oracle/utils/packet_utils.go @@ -242,7 +242,7 @@ func MustDecode(data []byte, v ...interface{}) { } } -// DecodeUnsigned16 decodes the input bytes into `uint8` and returns the remaining bytes. +// DecodeUnsigned8 decodes the input bytes into `uint8` and returns the remaining bytes. func DecodeUnsigned8(data []byte) (uint8, []byte, error) { if len(data) < 1 { return 0, nil, errors.New("obi: out of range") diff --git a/x/vaults/keeper/abci.go b/x/vaults/keeper/abci.go index a4edefd2..7458adba 100644 --- a/x/vaults/keeper/abci.go +++ b/x/vaults/keeper/abci.go @@ -6,7 +6,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -// EndBlocker called at every block, update validator set +// BeginBlocker called at every block, update validator set func (k *Keeper) BeginBlocker(goCtx context.Context) error { ctx := sdk.UnwrapSDKContext(goCtx) currentTime := ctx.BlockTime()