From 433e3fd6d9cfec1a785df5ca3db691b9d3451a9c Mon Sep 17 00:00:00 2001 From: fudancoder Date: Fri, 14 Jun 2024 06:45:49 +0900 Subject: [PATCH] chore: make function comment match function names (#20666) Signed-off-by: fudancoder --- server/v2/cometbft/utils.go | 2 +- server/v2/stf/core_gas_service.go | 2 +- x/accounts/defaults/multisig/utils_test.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/v2/cometbft/utils.go b/server/v2/cometbft/utils.go index 5313c445c7..75f880955a 100644 --- a/server/v2/cometbft/utils.go +++ b/server/v2/cometbft/utils.go @@ -210,7 +210,7 @@ func ToSDKEvidence(ev []abci.Misbehavior) []*comet.Evidence { return evidence } -// ToSDKDecidedCommitInfo takes comet commit info and returns sdk commit info +// ToSDKCommitInfo takes comet commit info and returns sdk commit info func ToSDKCommitInfo(commit abci.CommitInfo) *comet.CommitInfo { ci := comet.CommitInfo{ Round: commit.Round, diff --git a/server/v2/stf/core_gas_service.go b/server/v2/stf/core_gas_service.go index 656fd23388..7378d12657 100644 --- a/server/v2/stf/core_gas_service.go +++ b/server/v2/stf/core_gas_service.go @@ -23,7 +23,7 @@ func NewGasMeterService() gas.Service { type gasService struct{} -// GetGasConfig implements gas.Service. +// GasConfig implements gas.Service. func (g gasService) GasConfig(ctx context.Context) gas.GasConfig { panic("unimplemented") } diff --git a/x/accounts/defaults/multisig/utils_test.go b/x/accounts/defaults/multisig/utils_test.go index c5fcc1b384..47f185fef1 100644 --- a/x/accounts/defaults/multisig/utils_test.go +++ b/x/accounts/defaults/multisig/utils_test.go @@ -40,12 +40,12 @@ func (mockStateCodec) GetMsgAnySigners(msg *types.Any) ([][]byte, protoreflect.M panic("unimplemented") } -// GetMsgV1Signers implements codec.Codec. +// GetMsgSigners implements codec.Codec. func (mockStateCodec) GetMsgSigners(msg gogoproto.Message) ([][]byte, protoreflect.Message, error) { panic("unimplemented") } -// GetMsgV2Signers implements codec.Codec. +// GetReflectMsgSigners implements codec.Codec. func (mockStateCodec) GetReflectMsgSigners(msg protoreflect.Message) ([][]byte, error) { panic("unimplemented") }