Skip to content

Commit e3fcbce

Browse files
committed
fix: clear 32 bits instead of 36
1 parent d028c53 commit e3fcbce

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

encoding/da.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -815,12 +815,7 @@ func messageQueueV2ApplyL1Message(initialQueueHash common.Hash, message *types.L
815815
}
816816

817817
func messageQueueV2EncodeRollingHash(rollingHash common.Hash) common.Hash {
818-
// clear last 36 bits
819-
820-
// Clear the lower 4 bits of byte 26 (preserving the upper 4 bits)
821-
rollingHash[27] &= 0xF0
822-
823-
// Clear the next 4 bytes (32 bits total)
818+
// clear last 32 bits, i.e. 4 bytes.
824819
rollingHash[28] = 0
825820
rollingHash[29] = 0
826821
rollingHash[30] = 0

0 commit comments

Comments
 (0)