From 2ed853daefc08b3af861b2d4e1c626e120531d7a Mon Sep 17 00:00:00 2001 From: Franklin Waller Date: Wed, 30 Oct 2024 11:28:40 +0100 Subject: [PATCH] fix(batching): fix issue where hash used dataRoot instead of superRoot --- x/batching/keeper/endblock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/batching/keeper/endblock.go b/x/batching/keeper/endblock.go index 12064ce5..8bc664dc 100644 --- a/x/batching/keeper/endblock.go +++ b/x/batching/keeper/endblock.go @@ -112,7 +112,7 @@ func (k Keeper) ConstructBatch(ctx sdk.Context) (types.Batch, [][]byte, [][]byte //nolint:gosec // G115: We shouldn't get negative block heights anyway. hashContent = binary.BigEndian.AppendUint64(hashContent, uint64(ctx.BlockHeight())) hashContent = append(hashContent, valRoot...) - hashContent = append(hashContent, dataRoot...) + hashContent = append(hashContent, superRoot...) hashContent = append(hashContent, provingMetaDataHash...) hasher := sha3.NewLegacyKeccak256()