Skip to content

Commit

Permalink
Merge pull request ethereum#68 from mdehoog/roberto-dev
Browse files Browse the repository at this point in the history
initialize empty slices in blobs bundle
  • Loading branch information
roberto-bayardo authored Dec 1, 2022
2 parents 3b9c1aa + 72f4850 commit d5563a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/beacon/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,11 @@ func BlockToExecutableData(block *types.Block) *ExecutableData {

func BlockToBlobData(block *types.Block) (*BlobsBundle, error) {
blockHash := block.Hash()
blobsBundle := &BlobsBundle{BlockHash: blockHash}
blobsBundle := &BlobsBundle{
BlockHash: blockHash,
Blobs: []types.Blob{},
KZGs: []types.KZGCommitment{},
}
for i, tx := range block.Transactions() {
if tx.Type() == types.BlobTxType {
versionedHashes, kzgs, blobs, aggProof := tx.BlobWrapData()
Expand Down

0 comments on commit d5563a1

Please sign in to comment.