From a1f03a59bd45d04531b7783f46e1d0b7476be304 Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Thu, 3 Nov 2022 13:06:46 +0530 Subject: [PATCH] fix gosec --- x/nameservice/keeper/keeper.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x/nameservice/keeper/keeper.go b/x/nameservice/keeper/keeper.go index eb9c4f91..4d3dd3b7 100644 --- a/x/nameservice/keeper/keeper.go +++ b/x/nameservice/keeper/keeper.go @@ -296,6 +296,7 @@ func (k Keeper) ProcessAttributes(ctx sdk.Context, record types.RecordType) erro switch record.Attributes["type"] { case "ServiceProviderRegistration": { + // #nosec G705 for key := range record.Attributes { if key == "x500" { // #nosec G705 @@ -315,6 +316,7 @@ func (k Keeper) ProcessAttributes(ctx sdk.Context, record types.RecordType) erro } case "WebsiteRegistrationRecord": { + // #nosec G705 for key := range record.Attributes { indexKey := GetAttributesIndexKey(key, record.Attributes[key]) if err := k.SetAttributeMapping(ctx, indexKey, record.ID); err != nil {