Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Aug 31, 2023
1 parent d3c9da6 commit a16398a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion x/marker/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions x/marker/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a16398a

Please sign in to comment.