diff --git a/modules/messages/account_parser.go b/modules/messages/account_parser.go index 49f78c98..b9fa5e11 100644 --- a/modules/messages/account_parser.go +++ b/modules/messages/account_parser.go @@ -153,6 +153,7 @@ func GovMessagesParser(cdc codec.Codec, cosmosMsg sdk.Msg) ([]string, error) { // Get addresses from contents switch content := content.(type) { + //nolint:staticcheck // Let's keep this for the time being case *distrtypes.CommunityPoolSpendProposal: addresses = append(addresses, content.Recipient) } diff --git a/types/utils.go b/types/utils.go index a3559088..d326f14c 100644 --- a/types/utils.go +++ b/types/utils.go @@ -44,7 +44,7 @@ func FindEventsByType(events []abci.Event, eventType string) []abci.Event { func FindAttributeByKey(event abci.Event, attrKey string) (abci.EventAttribute, error) { for _, attr := range event.Attributes { - if string(attr.Key) == attrKey { + if attr.Key == attrKey { return attr, nil } } diff --git a/types/utils/utils.go b/types/utils/utils.go index 835a9174..1d0b3c22 100644 --- a/types/utils/utils.go +++ b/types/utils/utils.go @@ -44,7 +44,7 @@ func FindEventsByType(events []abci.Event, eventType string) []abci.Event { func FindAttributeByKey(event abci.Event, attrKey string) (abci.EventAttribute, error) { for _, attr := range event.Attributes { - if string(attr.Key) == attrKey { + if attr.Key == attrKey { return attr, nil } }