From d33c82cbbc8482bb7b195ffc5a2cdae10b951368 Mon Sep 17 00:00:00 2001 From: Charlie Chen Date: Tue, 5 Mar 2024 11:56:59 -0600 Subject: [PATCH] disable gosec error --- zetaclient/evm/inbounds.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zetaclient/evm/inbounds.go b/zetaclient/evm/inbounds.go index 5ff050fa38..0875053e08 100644 --- a/zetaclient/evm/inbounds.go +++ b/zetaclient/evm/inbounds.go @@ -325,7 +325,8 @@ func (ob *ChainClient) GetInboundVoteMsgForTokenSentToTSS(tx *ethrpc.Transaction } // donation check - data, _ := hex.DecodeString(message) // err already checked + // #nosec G703 err is already checked + data, _ := hex.DecodeString(message) if bytes.Equal(data, []byte(common.DonationMessage)) { ob.logger.ExternalChainWatcher.Info().Msgf("thank you rich folk for your donation! tx %s chain %d", tx.Hash, ob.chain.ChainId) return nil