sort unique denom list (#836)

This commit is contained in:
Denali Marsh 2021-02-19 22:05:17 +01:00 committed by GitHub
parent 0b6e47ff46
commit 421f774ec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,8 @@
package keeper
import (
"sort"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
@ -406,5 +408,6 @@ func removeDuplicates(one []string, two []string) []string {
for key := range check {
res = append(res, key)
}
sort.Strings(res)
return res
}