From 1f3ca2fc96ecf06b2efde4adab7b972f4c985d77 Mon Sep 17 00:00:00 2001 From: stellrust Date: Sat, 1 Jun 2024 15:56:06 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: stellrust --- cosmos/precompile/distribution/distribution.go | 2 +- cosmos/precompile/governance/governance.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cosmos/precompile/distribution/distribution.go b/cosmos/precompile/distribution/distribution.go index 0e386b0da..5b36d90be 100644 --- a/cosmos/precompile/distribution/distribution.go +++ b/cosmos/precompile/distribution/distribution.go @@ -295,7 +295,7 @@ func (c *Contract) GetTotalDelegatorReward( return amount, nil } -// ConvertValAddressFromBech32 converts a Cosmos string representing a validator address to a +// ConvertValAddressFromString converts a Cosmos string representing a validator address to a // common.Address. func (c *Contract) ConvertValAddressFromString(attributeValue string) (any, error) { // extract the sdk.ValAddress from string value as common.Address diff --git a/cosmos/precompile/governance/governance.go b/cosmos/precompile/governance/governance.go index fbe3def96..bc8a79f80 100644 --- a/cosmos/precompile/governance/governance.go +++ b/cosmos/precompile/governance/governance.go @@ -343,7 +343,7 @@ func (c *Contract) GetProposalDepositsByDepositor( return deposits, nil } -// GetProposalVotes is the method for the `getProposalVotes` method of the +// GetProposalTallyResult is the method for the `getProposalVotes` method of the // governance precompile contract. func (c *Contract) GetProposalTallyResult( ctx context.Context,