Skip to content

Commit

Permalink
Fixed nil ptr case. (#1172)
Browse files Browse the repository at this point in the history
Co-authored-by: StefanIliev545 <[email protected]>
  • Loading branch information
StefanIliev545 and StefanIliev545 authored Mar 21, 2023
1 parent 96565a7 commit 1d22729
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/enclave/enclave.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,9 @@ func (e *enclaveImpl) SubmitL1Block(block types.Block, receipts types.Receipts,
rollup, err := e.rollupManager.CreateRollup()
if err != nil {
e.logger.Error("Failed to produce rollup", log.ErrKey, err)
} else {
blockSubmissionResponse.ProducedRollup = rollup.ToExtRollup(e.transactionBlobCrypto)
}
blockSubmissionResponse.ProducedRollup = rollup.ToExtRollup(e.transactionBlobCrypto)
}

e.logger.Info("produceBlockSubmissionResponse successful", log.BlockHeightKey, block.Number(), log.BlockHashKey, block.Hash(),
Expand Down

0 comments on commit 1d22729

Please sign in to comment.