Skip to content

Commit

Permalink
Fix TestBlobTxWrappedEncodeDecode (#7944)
Browse files Browse the repository at this point in the history
Post-fix to PR #7943
  • Loading branch information
yperbasis authored Jul 30, 2023
1 parent af88420 commit 1776d28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/types/blob_tx_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,10 @@ func (txw BlobTxWrapper) encodePayload(w io.Writer, b []byte, total, txSize, com
return err
}

// TODO: encode in order (see EIP-4844 updates)
if err := txw.Commitments.encodePayload(w, b, commitmentsSize); err != nil {
if err := txw.Blobs.encodePayload(w, b, blobsSize); err != nil {
return err
}
if err := txw.Blobs.encodePayload(w, b, blobsSize); err != nil {
if err := txw.Commitments.encodePayload(w, b, commitmentsSize); err != nil {
return err
}
if err := txw.Proofs.encodePayload(w, b, proofsSize); err != nil {
Expand Down

0 comments on commit 1776d28

Please sign in to comment.