From 421f774ec1c83614fa6aa3d1c147ae67bed2ce44 Mon Sep 17 00:00:00 2001 From: Denali Marsh Date: Fri, 19 Feb 2021 22:05:17 +0100 Subject: [PATCH] sort unique denom list (#836) --- x/hard/keeper/liquidation.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x/hard/keeper/liquidation.go b/x/hard/keeper/liquidation.go index b95c3c59..35b98197 100644 --- a/x/hard/keeper/liquidation.go +++ b/x/hard/keeper/liquidation.go @@ -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 }