Skip to content

Commit

Permalink
chore(contracts): removed todo comments
Browse files Browse the repository at this point in the history
  • Loading branch information
koloz193 committed Jan 24, 2024
1 parent abcbaf3 commit d23d5c3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion l1-contracts/contracts/zksync/facets/Executor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ contract ExecutorFacet is Base, IExecutor {
// Get the chained hash of priority transaction hashes.
LogProcessingOutput memory logOutput = _processL2Logs(_newBatch, _expectedSystemContractUpgradeTxHash);

// TODO: Adapt to handle dynamic number of blobs
bytes32[] memory blobCommitments = new bytes32[](MAX_NUMBER_OF_BLOBS);
bytes32[] memory blobHashes = new bytes32[](MAX_NUMBER_OF_BLOBS);
if (pubdataSource == uint8(PubdataSource.Blob)) {
Expand Down
2 changes: 1 addition & 1 deletion system-contracts/contracts/PubdataChunkPublisher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ contract PubdataChunkPublisher is IPubdataChunkPublisher, ISystemContract {
/// @dev We always publish 2 system logs even if our pubdata fits into a single blob. This makes processing logs on L1 easier.
function chunkAndPublishPubdata(bytes calldata _pubdata) external onlyCallFrom(address(L1_MESSENGER_CONTRACT)) {
require(_pubdata.length <= BLOB_SIZE_BYTES * MAX_NUMBER_OF_BLOBS, "pubdata should fit in 2 blobs");
// TODO: Update for dynamic number of blobs

bytes32[] memory blobHashes = new bytes32[](MAX_NUMBER_OF_BLOBS);

// We allocate to the full size of MAX_NUMBER_OF_BLOBS * BLOB_SIZE_BYTES because we need to pad
Expand Down

0 comments on commit d23d5c3

Please sign in to comment.