From a16398a653ee78bbee550d8a72d5aaa575406a69 Mon Sep 17 00:00:00 2001 From: Carlton N Hanna Date: Wed, 30 Aug 2023 18:15:40 -0600 Subject: [PATCH] rename method --- x/marker/client/cli/cli_test.go | 2 +- x/marker/client/cli/tx.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x/marker/client/cli/cli_test.go b/x/marker/client/cli/cli_test.go index 57e962db74..ef3135897c 100644 --- a/x/marker/client/cli/cli_test.go +++ b/x/marker/client/cli/cli_test.go @@ -1938,7 +1938,7 @@ func (s *IntegrationTestSuite) TestParseNetAssertValueString() { tc := tc s.Run(tc.name, func() { - result, err := markercli.ParseNetAssertValueString(tc.netAssetValues) + result, err := markercli.ParseNetAssetValueString(tc.netAssetValues) if len(tc.expErr) > 0 { s.Assert().Equal(tc.expErr, err.Error()) s.Assert().Empty(result) diff --git a/x/marker/client/cli/tx.go b/x/marker/client/cli/tx.go index 822422c209..08304d3b64 100644 --- a/x/marker/client/cli/tx.go +++ b/x/marker/client/cli/tx.go @@ -1166,7 +1166,7 @@ func GetCmdAddNetAssetValues() *cobra.Command { } denom := strings.TrimSpace(args[0]) - netAssetValues, err := ParseNetAssertValueString(args[1]) + netAssetValues, err := ParseNetAssetValueString(args[1]) if err != nil { return err } @@ -1215,8 +1215,8 @@ func ParseAccessGrantFromString(addressPermissionString string) []types.AccessGr return grants } -// ParseNetAssertValueString splits string (example address1,perm1,perm2...;address2, perm1...) to list of NetAssetValue's -func ParseNetAssertValueString(netAssetValuesString string) ([]types.NetAssetValue, error) { +// ParseNetAssetValueString splits string (example address1,perm1,perm2...;address2, perm1...) to list of NetAssetValue's +func ParseNetAssetValueString(netAssetValuesString string) ([]types.NetAssetValue, error) { navs := strings.Split(netAssetValuesString, ";") if len(navs) == 1 && len(navs[0]) == 0 { return []types.NetAssetValue{}, nil