From 323cc3065baf2fc36438fde1e358a99c0001548c Mon Sep 17 00:00:00 2001 From: pudongair <744355276@qq.com> Date: Fri, 19 Jul 2024 19:37:24 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: pudongair <744355276@qq.com> --- x/vesting/module.go | 2 +- x/vesting/types/period.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/vesting/module.go b/x/vesting/module.go index 96f48f0e..ce6b7712 100644 --- a/x/vesting/module.go +++ b/x/vesting/module.go @@ -44,7 +44,7 @@ func (AppModuleBasic) Name() string { return types.ModuleName } -// RegisterCodec registers the module's types with the given codec. +// RegisterLegacyAminoCodec registers the module's types with the given codec. func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { types.RegisterLegacyAminoCodec(cdc) } diff --git a/x/vesting/types/period.go b/x/vesting/types/period.go index a1ac78f5..da939c93 100644 --- a/x/vesting/types/period.go +++ b/x/vesting/types/period.go @@ -31,7 +31,7 @@ func (p Periods) TotalDuration() time.Duration { return time.Duration(totalLen) * time.Second } -// TotalDuration returns the sum of coins for the period. +// TotalAmount returns the sum of coins for the period. func (p Periods) TotalAmount() sdk.Coins { total := sdk.Coins{} for _, period := range p {