Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Jan 17, 2025
1 parent 74c46bb commit b4f108c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions go/ethadapter/mgmtcontractlib/mgmt_contract_lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (c *contractLibImpl) CreateBlobRollup(t *common.L1RollupTx) (types.TxData,
}

// Calculate blob hash from first blob
//blobHash, err := ethadapter.ComputeBlobHash(blobs[0])
blobHash, err := ethadapter.ComputeBlobHash(blobs[0])
if err != nil {
return nil, fmt.Errorf("failed to compute blob hash: %w", err)
}
Expand All @@ -139,10 +139,10 @@ func (c *contractLibImpl) CreateBlobRollup(t *common.L1RollupTx) (types.TxData,
Hash: decodedRollup.Header.PayloadHash,
Signature: decodedRollup.Header.Signature,
LastSequenceNumber: big.NewInt(int64(decodedRollup.Header.LastBatchSeqNo)),
//BlockHash: decodedRollup.Header.CompressionL1Head, // Using CompressionL1Head as BlockHash
//MessageRoot: common.Hash{}, // Zero for now as specified
//BlockNumber: big.NewInt(int64(decodedRollup.Header.BlockNumber)),
//BlobHash: blobHash,
BlockHash: decodedRollup.Header.CompressionL1Head, // Using CompressionL1Head as BlockHash
MessageRoot: gethcommon.Hash{}, // Zero for now as specified
BlockNumber: big.NewInt(int64(decodedRollup.Header.BlockNumber)),
BlobHash: blobHash,
}

data, err := c.contractABI.Pack(
Expand Down

0 comments on commit b4f108c

Please sign in to comment.