Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Nov 4, 2024
1 parent ed94fd3 commit 426e28e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/l1.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ func (l *LogMessageToL2) HashMessage() *common.Hash {
hash := sha3.NewLegacyKeccak256()

writeUint256 := func(value *big.Int) {
bytes := make([]byte, 32)
bytes := make([]byte, 32) //nolint:mnd
value.FillBytes(bytes)
hash.Write(bytes)
}

hash.Write(make([]byte, 12)) // Pad FromAddress to 32 bytes
hash.Write(make([]byte, 12)) // Pad FromAddress to 32 bytes //nolint:mnd

Check failure on line 37 in rpc/l1.go

View workflow job for this annotation

GitHub Actions / lint

Magic number: 12, in <argument> detected (mnd)
hash.Write(l.FromAddress.Bytes())
writeUint256(l.ToAddress)
writeUint256(l.Nonce)
Expand Down

0 comments on commit 426e28e

Please sign in to comment.