From e351e207277b4573320c296748a504a9e97ad3d3 Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Wed, 10 Feb 2021 07:57:02 -0700 Subject: [PATCH] fix: collateral param permission (#813) --- x/committee/types/permissions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/committee/types/permissions.go b/x/committee/types/permissions.go index e223b972..2201093f 100644 --- a/x/committee/types/permissions.go +++ b/x/committee/types/permissions.go @@ -354,7 +354,7 @@ func (acps AllowedCollateralParams) Allows(current, incoming cdptypes.Collateral var foundCurrentCP bool var currentCP cdptypes.CollateralParam for _, p := range current { - if p.Denom != incomingCP.Denom { + if p.Type != incomingCP.Type { continue } foundCurrentCP = true