Skip to content

Commit

Permalink
Add nosec G115 to GetCommitteeID
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusFranco99 committed Sep 26, 2024
1 parent 2b008a9 commit 54600b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/committee_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func GetCommitteeID(committee []OperatorID) CommitteeID {
// Convert to bytes
bytes := make([]byte, len(committee)*4)
for i, v := range committee {
binary.LittleEndian.PutUint32(bytes[i*4:], uint32(v))
binary.LittleEndian.PutUint32(bytes[i*4:], uint32(v)) // #nosec G115 --This conversion is kept since it would cause a network fork, and, for now, it is safe since OperatorID << MaxUInt32 as it's incremented by contract
}
// Hash
return sha256.Sum256(bytes)
Expand Down

0 comments on commit 54600b9

Please sign in to comment.