From a5c8fb2d08c1b46c6a3653749296f080ba610994 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Tue, 14 Nov 2023 16:27:14 -0500 Subject: [PATCH] add comments for nosec warning --- x/crosschain/types/keys.go | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/x/crosschain/types/keys.go b/x/crosschain/types/keys.go index 4ae8b2b0ad..b721f5cabc 100644 --- a/x/crosschain/types/keys.go +++ b/x/crosschain/types/keys.go @@ -36,20 +36,11 @@ func KeyPrefix(p string) []byte { } const ( - TxinKey = "Txin-value-" - TxinVoterKey = "TxinVoter-value-" - - TxoutKey = "Txout-value-" - TxoutCountKey = "Txout-count-" - TxoutConfirmationKey = "TxoutConfirmation-value-" - SendKey = "Send-value-" - VoteCounterKey = "VoteCounter-value-" - ReceiveKey = "Receive-value-" - LastBlockHeightKey = "LastBlockHeight-value-" - ChainNoncesKey = "ChainNonces-value-" - GasPriceKey = "GasPrice-value-" - - GasBalanceKey = "GasBalance-value-" + SendKey = "Send-value-" + LastBlockHeightKey = "LastBlockHeight-value-" + ChainNoncesKey = "ChainNonces-value-" + GasPriceKey = "GasPrice-value-" + TSSKey = "TSS-value-" TSSHistoryKey = "TSS-History-value-" @@ -58,7 +49,9 @@ const ( NonceToCctxKeyPrefix = "NonceToCctx-value-" PendingNoncesKeyPrefix = "PendingNonces-value-" - AbortedZetaAmountKey = "AbortedZetaAmount-value-" + // #nosec G101: Potential hardcoded credentials (gosec) + // AbortedZetaAmountKey value is used as prefix for storing AbortedZetaAmountKey + AbortedZetaAmountKey = "AbortedZetaAmount-value-" ) // OutTxTrackerKey returns the store key to retrieve a OutTxTracker from the index fields