Skip to content

Commit 352d261

Browse files
authored
Fix serializeTransaction (#2302)
1 parent 43b9523 commit 352d261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

domain/consensus/utils/consensushashing/transaction.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func serializeTransaction(w io.Writer, tx *externalapi.DomainTransaction, encodi
128128

129129
if includeMass {
130130
if tx.MassCommitment > 0 { // For backward compatibility, serialize MassCommitment only if it's not zero
131-
err = binaryserializer.PutUint64(w, tx.Mass)
131+
err = binaryserializer.PutUint64(w, tx.MassCommitment)
132132
if err != nil {
133133
return err
134134
}

0 commit comments

Comments
 (0)