From 907e02b2e53e3cfcf994427257eaf34078691605 Mon Sep 17 00:00:00 2001 From: MaxMustermann2 <82761650+MaxMustermann2@users.noreply.github.com> Date: Fri, 5 Apr 2024 17:02:04 +0000 Subject: [PATCH] fix(dogfood): #nosec the correct rule --- x/dogfood/keeper/genesis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/dogfood/keeper/genesis.go b/x/dogfood/keeper/genesis.go index f7ba66800..0d249862b 100644 --- a/x/dogfood/keeper/genesis.go +++ b/x/dogfood/keeper/genesis.go @@ -35,7 +35,7 @@ func (k Keeper) InitGenesis( for _, val := range genState.InitialValSet { // #nosec G703 // already validated consKey, _ := operatortypes.HexStringToPubKey(val.PublicKey) - // #nosec G601 // this only fails if the key is of a type not already defined. + // #nosec G703 // this only fails if the key is of a type not already defined. consAddr, _ := operatortypes.TMCryptoPublicKeyToConsAddr(consKey) found, _ := k.operatorKeeper.GetOperatorAddressForChainIDAndConsAddr( ctx, ctx.ChainID(), consAddr,