eth/catalyst: fixup invocation of BlockToExecutableData

This commit is contained in:
Felix Lange 2023-08-23 04:32:13 +02:00
parent f1a8cc2f28
commit 3bebfce495

View file

@ -1521,13 +1521,16 @@ func TestBlockToPayloadWithBlobs(t *testing.T) {
} }
txs = append(txs, types.NewTx(&inner)) txs = append(txs, types.NewTx(&inner))
sidecars := []*types.BlobTxSidecar{
blobs := make([]kzg4844.Blob, 1) {
commitments := make([]kzg4844.Commitment, 1) Blobs: make([]kzg4844.Blob, 1),
proofs := make([]kzg4844.Proof, 1) Commitments: make([]kzg4844.Commitment, 1),
Proofs: make([]kzg4844.Proof, 1),
},
}
block := types.NewBlock(&header, txs, nil, nil, trie.NewStackTrie(nil)) block := types.NewBlock(&header, txs, nil, nil, trie.NewStackTrie(nil))
envelope := engine.BlockToExecutableData(block, nil, blobs, commitments, proofs) envelope := engine.BlockToExecutableData(block, nil, sidecars)
var want int var want int
for _, tx := range txs { for _, tx := range txs {
want += len(tx.BlobHashes()) want += len(tx.BlobHashes())