Skip to content

Commit

Permalink
Fix serializeTransaction (#2302)
Browse files Browse the repository at this point in the history
  • Loading branch information
someone235 authored Feb 23, 2025
1 parent 43b9523 commit 352d261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domain/consensus/utils/consensushashing/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func serializeTransaction(w io.Writer, tx *externalapi.DomainTransaction, encodi

if includeMass {
if tx.MassCommitment > 0 { // For backward compatibility, serialize MassCommitment only if it's not zero
err = binaryserializer.PutUint64(w, tx.Mass)
err = binaryserializer.PutUint64(w, tx.MassCommitment)
if err != nil {
return err
}
Expand Down

0 comments on commit 352d261

Please sign in to comment.