Skip to content

Commit

Permalink
disable gosec error
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Mar 5, 2024
1 parent 9febe98 commit d33c82c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zetaclient/evm/inbounds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d33c82c

Please sign in to comment.