@@ -238,12 +238,14 @@ contract Rollup is IRollup, OwnableUpgradeable, PausableUpgradeable {
238238 ) {
239239 require (batchDataInput.numL1Messages > 0 , "l1msg delay " );
240240 }
241- _commitBatchWithBatchData (batchDataInput, batchSignatureInput);
241+ uint256 submitterBitmap = IL1Staking (l1StakingContract).getStakerBitmap (_msgSender ());
242+ _commitBatchWithBatchData (batchDataInput, batchSignatureInput, submitterBitmap);
242243 }
243244
244245 function _commitBatchWithBatchData (
245246 BatchDataInput calldata batchDataInput ,
246- BatchSignatureInput calldata batchSignatureInput
247+ BatchSignatureInput calldata batchSignatureInput ,
248+ uint256 submitterBitmap
247249 ) internal {
248250 require (batchDataInput.version == 0 || batchDataInput.version == 1 , "invalid version " );
249251 require (batchDataInput.prevStateRoot != bytes32 (0 ), "previous state root is zero " );
@@ -324,7 +326,7 @@ contract Rollup is IRollup, OwnableUpgradeable, PausableUpgradeable {
324326 batchDataInput.lastBlockNumber,
325327 // Before BLS is implemented, the accuracy of the sequencer set uploaded by rollup cannot be guaranteed.
326328 // Therefore, if the batch is successfully challenged, only the submitter will be punished.
327- IL1Staking (l1StakingContract). getStakerBitmap ( _msgSender ()) // => batchSignature.signedSequencersBitmap
329+ submitterBitmap // => batchSignature.signedSequencersBitmap
328330 );
329331
330332 lastCommittedBatchIndex = _batchIndex;
@@ -367,7 +369,7 @@ contract Rollup is IRollup, OwnableUpgradeable, PausableUpgradeable {
367369 }
368370 require (rollupDelay || l1MsgQueueDelayed, "invalid timing " );
369371
370- _commitBatchWithBatchData (batchDataInput, batchSignatureInput);
372+ _commitBatchWithBatchData (batchDataInput, batchSignatureInput, 0 );
371373
372374 // get batch data from batch header
373375 (uint256 memPtr , bytes32 _batchHash ) = _loadBatchHeader (_batchHeader);
0 commit comments