@@ -109,16 +109,14 @@ func (s *Submitter) Submit(withProof bool) error {
109109 return fmt .Errorf ("failed to get end chunk with index %d of batch: %w" , batch .EndChunkIndex , err )
110110 }
111111
112- var aggProof message.BundleProof
112+ var aggProof * message.OpenVMBundleProof
113113 if withProof {
114114 firstChunk , err := s .chunkOrm .GetChunkByIndex (s .ctx , batch .StartChunkIndex )
115115 if err != nil || firstChunk == nil {
116116 return fmt .Errorf ("failed to get first chunk %d of batch: %w" , batch .StartChunkIndex , err )
117117 }
118118
119- hardForkName := encoding .GetHardforkName (s .chainCfg , firstChunk .StartBlockNumber , firstChunk .StartBlockTime )
120-
121- aggProof , err = s .bundleOrm .GetVerifiedProofByHash (s .ctx , bundle .Hash , hardForkName )
119+ aggProof , err = s .bundleOrm .GetVerifiedProofByHash (s .ctx , bundle .Hash )
122120 if err != nil {
123121 return fmt .Errorf ("failed to get verified proof by bundle index: %d, err: %w" , bundle .Index , err )
124122 }
@@ -139,11 +137,9 @@ func (s *Submitter) Submit(withProof bool) error {
139137 default :
140138 return fmt .Errorf ("unsupported codec version in finalizeBundle, bundle index: %v, version: %d" , bundle .Index , bundle .CodecVersion )
141139 }
142- //
143- fmt .Println (len (blob ))
144- txHash , err := s .finalizeSender .SendTransaction ("commitAndFinalize-" + bundle .Hash , & s .cfg .RollupContractAddress , calldata , []* kzg4844.Blob {blob }, 0 )
140+
141+ txHash , _ , err := s .finalizeSender .SendTransaction ("commitAndFinalize-" + bundle .Hash , & s .cfg .RollupContractAddress , calldata , []* kzg4844.Blob {blob })
145142 if err != nil {
146- //fmt.Println("blob", common.Bytes2Hex(blob[:]))
147143 log .Error ("commitAndFinalize in layer1 failed" , "with proof" , withProof , "index" , bundle .Index ,
148144 "batch index" , bundle .StartBatchIndex ,
149145 "RollupContractAddress" , s .cfg .RollupContractAddress , "err" , err , "calldata" , common .Bytes2Hex (calldata ))
@@ -206,7 +202,7 @@ func (s *Submitter) Submit(withProof bool) error {
206202 return nil
207203}
208204
209- func (s * Submitter ) constructCommitAndFinalizeCalldataAndBlob (batch * orm.Batch , endChunk * orm.Chunk , aggProof message.BundleProof ) ([]byte , * kzg4844.Blob , error ) {
205+ func (s * Submitter ) constructCommitAndFinalizeCalldataAndBlob (batch * orm.Batch , endChunk * orm.Chunk , aggProof * message.OpenVMBundleProof ) ([]byte , * kzg4844.Blob , error ) {
210206 // Create the FinalizeStruct tuple as an abi-compatible struct
211207 finalizeStruct := struct {
212208 BatchHeader []byte
0 commit comments